Fluxir DocsFluxir Docs

Extract passport details from uploaded document

POST/api/app/passport-recognition

Submit a passport image or PDF for OCR processing and return structured passport data.

Header Parameters

X-Tenantstring

Tenant ID

Body multipart/form-data

documentstring<binary>

Response

OK

countryRegionstring
passportTypestring
fieldsobject[]
Show fields properties
nameIdstring
valuestring

Bad Request

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Unauthorized

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Forbidden

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Found

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Internal Server Error

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Implemented

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]
Request
curl -X POST "https://api.example.com/api/app/passport-recognition" \
  -H "Content-Type: multipart/form-data" \
  -H "X-Tenant: <X-Tenant>" \
  -d '{
  "document": "string"
}'
Response
{
  "countryRegion": "string",
  "passportType": "string",
  "fields": [
    {
      "nameId": "string",
      "value": "string"
    }
  ]
}