About this endpoint
What it does
Anonymizes text content by sending a text string in the request body and returning a JSON object with a data object. The data object may include either an azure response object, an apyhub response object, or both, depending on the backend used.
Request Body
| Parameter | Type | Description |
|---|---|---|
| text | String | The text to anonymize. |
| azure | Object | Custom credentials for Azure services. Contains the optional fields key, region, endpoint, account_id, and access_token. |
| azure.key | String | Azure subscription key. |
| azure.region | String | Azure service region. |
| azure.endpoint | String | Azure endpoint URL. |
| azure.account_id | String | Azure account ID. |
| azure.access_token | String | OAuth access token for Azure service. |
| language | String | Language code for the input text. |
| requested_service | ENUM | Which service to use. Allowed values: azure, apyhub. Default: apyhub. |
Response
Returns a JSON object with a data object field. The data object may contain an azure object and/or an apyhub object, depending on the service used.
| Parameter | Type | Description |
|---|---|---|
| data | Object | Response payload. May include azure and/or apyhub objects. |
| data.azure | Object | Response object from Microsoft Azure Cognitive Services. |
| data.apyhub | Object | Response object from ApyHub language tools. |



