---
title: AI Text Anonymization API
slug: anonymize-text
url: https://apyhub.com/apyhub/service/anonymize-text
provider: ApyHub
categories: ["Security & Privacy", Smart Generation]
tags: [anonymize, text]
auth: api_key
---

# AI Text Anonymization API

Anonymize free-form text and return an azure or apyhub response object. Useful for redacting names and phone numbers before storage or sharing.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/ai/text/anonymize` | What it does Anonymizes text content by sending a text string in the request body and returning a J… | 500 |

## About

## What it does
Text Anonymizer removes personal or sensitive details from plain text and returns an anonymized response object. Send a `text` string in the request body, optionally set `language`, and choose `requested_service` to use either `apyhub` or `azure`. If you use Azure directly, you can also pass custom `azure` credentials such as `key`, `region`, `endpoint`, `account_id`, or `access_token`.

Use it when you need to process support tickets, chat logs, notes, or other free-form text before storing or sharing them. It fits privacy workflows where names, phone numbers, and similar identifiers should be hidden before data leaves a trusted boundary.

The response returns a `data` object with either an `azure` payload or an `apyhub` payload, depending on the service you request. That makes it suitable for pipelines that need a privacy-preserving text step without changing the rest of the document flow.

Text Anonymizer is a good fit for compliance, redaction, and internal analytics where you want the content to remain useful while reducing exposure of sensitive information.

| Provider (requested_service) | Atoms |
|------------------------------|------:|
| Azure                        |   500 |
| ApyHub                       |  2000 |

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/anonymize-text
