DocuTray
API ReferenceIdentification

identifyDocument

Identify document type from an image

POST/api/identify

Automatically identify the document type from a provided list of options.

Supported file formats:

  • image/jpeg (JPEG)
  • image/png (PNG)
  • image/gif (GIF)
  • image/bmp (BMP)
  • image/webp (WebP)
  • application/pdf (PDF)

Size limits:

  • Maximum file size: 100MB
  • URL download timeout: 30 seconds

Request methods:

  1. multipart/form-data: Direct file upload
  2. application/json with base64: Base64-encoded image
  3. application/json with URL: Image URL for automatic download

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Request Body

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json