API CodexAPI Codex
WebsiteDashboardGet API Key
  • Documentation
  • All APIs
  • Changelog
Resources
  • Docs Home
  • API Catalog
  • API Codex Website
Platform
  • Get a free API key
  • Dashboard
  • APIs & Pricing

© 2026 API Codex. All rights reserved.

Information
Other endpoints
    Anonymize TextpostAnonymize File Contentpost
Schemas
powered by Zudoku
Text Anonymization API
Text Anonymization API

Other endpoints


Anonymize Text

POST
https://api.apicodex.io/parser
/v1/anonymize/text

Anonymizes sensitive information in the provided text. Accepts JSON, plain text, or form data input.

Anonymize Text › Request Body

TextAnonymizationRequest
text
​string · required

The text content to anonymize

entities
​string[]

List of entity types to anonymize (defaults to a predefined list if not provided)

Enum values:
REDACTED
DATE
TIME
DATETIME
EMAIL_ADDRESS
URL
IBAN_CODE
CREDIT_CARD

Anonymize Text › Responses

Successful anonymization

AnonymizationResponse
success
​boolean

Whether the anonymization was successful

anonymized_at
​string · date-time

The timestamp when anonymization was performed

anonymized_text
​string

The anonymized text with sensitive information redacted

error
​string

Error message if any occurred during processing (only present on partial success)

POST/v1/anonymize/text
curl 'https://api.apicodex.io/parser/v1/anonymize/text?apikey=<api-key>' \ --request POST \ --header 'Content-Type: application/json' \ --data '{ "text": "text", "entities": [ "REDACTED" ] }'
Example Request Body
{ "text": "text", "entities": [ "REDACTED" ] }
json
Example Responses
{ "success": true, "anonymized_at": "2024-08-25T15:00:00Z", "anonymized_text": "anonymized_text", "error": "error" }
json
application/json

Anonymize File Content

POST
https://api.apicodex.io/parser
/v1/anonymize/upload

Uploads a file and anonymizes sensitive information in its content. Supports PDF, plain text, and HTML files.

Anonymize File Content › Request Body

file
​string · required

The file to anonymize (PDF, TXT, HTML)

entities
​string[]

List of entity types to anonymize

Anonymize File Content › Responses

Successful file anonymization

AnonymizationResponse
success
​boolean

Whether the anonymization was successful

anonymized_at
​string · date-time

The timestamp when anonymization was performed

anonymized_text
​string

The anonymized text with sensitive information redacted

error
​string

Error message if any occurred during processing (only present on partial success)

POST/v1/anonymize/upload
curl 'https://api.apicodex.io/parser/v1/anonymize/upload?apikey=<api-key>' \ --request POST \ --header 'Content-Type: multipart/form-data' \ --form 'file=file' \ --form 'entities=string'
Example Request Body
{ "file": "file", "entities": [ "string" ] }
text
Example Responses
{ "success": true, "anonymized_at": "2024-08-25T15:00:00Z", "anonymized_text": "anonymized_text", "error": "error" }
json
application/json