---
agentTools:
  projectIndex: https://scandoc.readme.io/llms.txt
---

# /guest/{guest_id}

This endpoint is used to fetch a guest recoreded with a PUT request

Get guest can be used to fetch a guest from the database if needed. The method retrieves guests data alongside its face image. If trying to fetch a non-registered guest id, the service returns 404 error. Id is the same the PUT guest method returns.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Guest Identification API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.scandoc.ai/cis/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/guest/{guest_id}": {
      "get": {
        "summary": "/guest/{guest_id}",
        "description": "This endpoint is used to fetch a guest recoreded with a PUT request",
        "operationId": "guestguest_id",
        "parameters": [
          {
            "name": "guest_id",
            "in": "path",
            "description": "Guest id you are trying to access",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "AcceptTermsAndConditions",
            "in": "query",
            "description": "Terms and conditions must be accepted",
            "required": true,
            "schema": {
              "type": "string",
              "default": "True"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Access token provided by key service",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"TransactionID\": \"<transaction-uuid>\",\n  \"UploadedAt\": \"<timestamp>\",\n  \"ProductName\": f\"Guest Identification {APP_VERSION}\",\n  \"Errors\": [\"<Error1>\", ...],\n  \"Warnings\": [\"<Warning1>\", ...],\n  \"Status\": <status-code>,\n  \"InfoCode\": <info-code>,\n  \"Method\": \"GetGuest\",\n  \"UserId\": <user-id>,\n  \"SubClientId\": <sub-client-id>,\n  \"CreatedDate\": \"<timestamp>\",\n  \"Data\": {\n\t\t\"Guest\": {\n    \t\"GuestId\": <id>,\n      \"GuestName\": \"<name>\",\n      \"GuestSurname\": \"<surname>\"\n    },\n    \"GuestImage\": \"<encoded-image>\",\n    \"GuestImageEncoding\": \"base64\"\n  }\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6511de94eb250f00120ab66a:6512884b3cde8900519afe6d"
}
```