> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-pt-br/sdks/backend-sdk/selphid/technical_documentation/api_reference/management/api-v1-selphid-tokeninfo.md).

# /api/v1/selphid/tokeninfo

Gets the type of an input image or token.

```json
{"openapi":"3.0.0","info":{"title":"SelphID-SDK Rest API","version":"6.21.0"},"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Default API key header name. It can be overridden at startup with `auth_api_key_header_name`."}},"schemas":{"TokenBuffer":{"type":"object","description":"A raw image or token buffer.","properties":{"tokenBuffer":{"$ref":"#/components/schemas/Token"}},"required":["tokenBuffer"]},"Token":{"type":"string","description":"Raw image buffer in .png, .jpg or .bmp format, base64-encoded, or tokenized image, base64-encoded."},"TokenTypeResult":{"type":"object","description":"The result of the token identification.","properties":{"type":{"$ref":"#/components/schemas/TokenType"}}},"TokenType":{"type":"string","description":"Possible results for an input token buffer.","enum":["jpg","png","bmp","templateRaw","tokenImage","tokenGeneric","unknown","unsupported"]},"BadRequestResult":{"type":"object","description":"Result when incorrect parameters arrive in the request.","properties":{"status":{"type":"number"},"error":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}},"TimeStamp":{"type":"string","description":"A date and time value in \"%Y-%m-%dT%H:%M:%SZ\" format."},"ExceptionResult":{"type":"object","description":"An error occurred in the call to the SelphID-SDK backend.","properties":{"status":{"type":"number"},"error":{"type":"string"},"exception":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}}}},"paths":{"/api/v1/selphid/tokeninfo":{"post":{"description":"Gets the type of an input image or token.","tags":["Management"],"requestBody":{"description":"JSON with the image or token data.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenBuffer"}}}},"responses":{"200":{"description":"A message with the description.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenTypeResult"}}}},"400":{"description":"Incorrect parameters in the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResult"}}}},"500":{"description":"An error occurred in the call to the SelphID-SDK backend.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionResult"}}}}}}}}}
```
