About this endpoint
What it does
Uploads a file for label detection and routes the request to either Azure or Google based on requested_service. The response returns a JSON object with a data object containing the provider-specific result object for the selected service.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | The file to analyze. Binary upload. |
| azure_region | String | No | Azure region. Example: trial. |
| azure_account_id | String | No | Azure account ID. |
| requested_service | ENUM | Yes | Determines which provider is used. Allowed values: azure, google. |
| azure_access_token | String | No | Azure access token. |
| google_credential_file | String | No | Google service account JSON file for Google routes. Binary upload. |
Response
Returns a JSON object with a data object field. Inside data, the schema defines optional azure and google object fields; the provider-specific result is present for the service that was requested.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Wrapper object containing the provider-specific result. |
| data.azure | Object | No | Present when requested_service is azure. Additional properties are allowed. |
| data.google | Object | No | Present when requested_service is google. Additional properties are allowed. |