About this endpoint
What it does
Uploads a file and returns extracted read-data parsing output. You can choose whether the response should contain Azure Document Intelligence output, ApyHub Read Layout Transcription output, or both, depending on the request fields you send.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary file upload. |
| azure_key | String | Yes (if azure is selected in requested_service) | Azure key value. |
| azure_region | String | No | Azure region string. |
| azure_endpoint | String | Yes (if azure is selected in requested_service) | Azure endpoint URL. |
| azure_account_id | String | Yes (if azure is selected in requested_service) | Azure account identifier. |
| requested_service | ENUM | No | 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. The data object may contain azure and/or apyhub object fields with parsing output.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Response wrapper containing parsing output. |
| data.azure | Object | No | Raw Azure Document Intelligence parsing output. |
| data.apyhub | Object | No | Structured ApyHub Read Layout Transcription parsing output. |