apyhub
SECURITY & PRIVACY

AI Text Anonymization API

What it does

Text Anonymizer helps you remove or mask sensitive details from plain text. Send a text string, and you can also provide language plus a requested_service value of azure or apyhub to choose the processing backend. If you use Azure, you can include an azure object with key, region, endpoint, account_id, or access_token credentials.

Use it when you need to share notes, support tickets, chat logs, or user submissions without exposing personal data. A common workflow is cleaning internal transcripts before sending them to analytics, QA, or LLM pipelines. The service is designed for privacy-focused text handling rather than general content rewriting.

The response returns a data object with azure and/or apyhub result objects, depending on the backend you request. That keeps the integration simple: you send text in, and read the anonymization result back from the provider you chose.

Text Anonymizer fits into moderation, compliance, and secure data-processing flows where raw user text should not be stored or forwarded unchanged.

POST
Anonymize text content
https://api.eu.apyverse.com/apyhub/anonymize-text

QUICKSTART

GUIDE

Quickstart

Send a piece of text to be anonymized.

curl -X POST "https://api.eu.apyverse.com/apyhub/anonymize-text" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"My name is John Doe and my phone number is 555-0199."}'

What you'll get back

Returns a JSON object with a data object field. That data object may contain azure and/or apyhub response objects, depending on the service used.

{
  "data": {
    "azure": {},
    "apyhub": {}
  }
}
TRY ITLIVE · 500 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
azure
Custom credentials for Azure services.
Azure subscription key.
Azure service region.
Azure endpoint URL.
Azure account ID.
OAuth access token for Azure service.

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 containing service-specific results. You can optionally provide Azure credentials and choose whether to route the request to azure or apyhub.

Request Body

ParameterTypeMandatoryDescription
textStringYesThe text to anonymize.
azureObjectNoCustom credentials for Azure services. See schema for nested fields.
azure.keyStringNoAzure subscription key.
azure.regionStringNoAzure service region.
azure.endpointStringNoAzure endpoint URL.
azure.account_idStringNoAzure account ID.
azure.access_tokenStringNoOAuth access token for Azure service.
languageStringNoLanguage code for the input text.
requested_serviceENUMNoWhich service to use. Allowed values: azure, apyhub. Default: apyhub.

Response

Returns a JSON object with a data object field. The data object may contain azure and/or apyhub objects, depending on the service used.

ParameterTypeMandatoryDescription
dataObjectNoContainer for the anonymization result.
data.azureObjectNoResponse object from Microsoft Azure Cognitive Services.
data.apyhubObjectNoResponse object from ApyHub language tools.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.