About this endpoint
What it does
Detects faces from an uploaded file and routes the request to either Azure or Google based on requested_service. The response returns a JSON object with a data object containing provider-specific results.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Uploaded file to analyze. Binary format. |
| azure_region | String | No | Azure region. |
| azure_account_id | String | No | Azure account ID. |
| requested_service | ENUM | Yes | Route to use for detection. Allowed values: azure, google. |
| azure_access_token | String | No | Azure access token. |
| google_credential_file | String | No | Google service account JSON file. Binary format. |
Response
Returns a JSON object with a required data object field. Inside data, the schema defines optional azure and google object fields; the relevant one is present depending on the selected requested_service.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response wrapper object. Contains provider-specific result fields. |
| 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. |