About this endpoint
What it does
Uploads an ID document file and returns parsed extraction results. The response is a JSON object with a data object containing azure and apyhub result objects.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary file upload containing the ID document to parse. |
| azure_key | String | No | Azure key used when requesting Azure-based processing. |
| azure_region | String | No | Azure region value; example format is a region string such as eastus. |
| azure_endpoint | String | No | Azure endpoint URL. |
| azure_account_id | String | No | Azure account identifier. |
| requested_service | ENUM | No | Which service to use for extraction. Allowed values: azure, apyhub. Default: apyhub. |
| azure_access_token | String | No | Azure access token. |
Response
Returns a JSON object with a data object field. Inside data, the response may include azure and apyhub object fields, which contain the raw Azure Document Intelligence parsing output and the structured ApyHub ID extraction parsing output, respectively.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Response wrapper that may contain service-specific extraction results. |
| data.azure | Object | No | Raw Azure Document Intelligence parsing output. |
| data.apyhub | Object | No | Structured ApyHub ID extraction parsing output. |