About this endpoint
What it does
Extracts document data from a file available at a URL. You choose the extraction service with requested_service, and the response returns a data object containing the result under either azure or apyhub.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | The document URL to extract from. Must be a URI. |
| requested_service | ENUM | Yes | The extraction backend to use: azure or apyhub. |
| azure | Object | No | Azure-specific connection details used when requested_service is azure. |
| azure.key | String | No | Azure key. |
| azure.region | String | No | Azure region. |
| azure.endpoint | String | No | Azure endpoint. Must be a URI. |
| azure.account_id | String | No | Azure account ID. |
| azure.access_token | String | No | Azure access token. |
Response
Returns a JSON object with a data object field. The data object contains either an azure object or an apyhub object, depending on the requested service.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Wrapper object for the extraction result. |
| data.azure | Object | No | Present when requested_service is azure. |
| data.apyhub | Object | No | Present when requested_service is apyhub. |