API Codex
Text Anonymization API

Documentation

Endpoint:https://text-anonymization-api.p.rapidapi.com

Anonymize Text

POST
https://text-anonymization-api.p.rapidapi.com
/v1/anonymize/text

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

Anonymize TextRequest Body

  • textstring · required

    The text content to anonymize

  • entitiesstring[]

    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 TextResponses

Successful anonymization

  • successboolean

    Whether the anonymization was successful

  • anonymized_atstring · date-time

    The timestamp when anonymization was performed

  • anonymized_textstring

    The anonymized text with sensitive information redacted

  • errorstring

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


Anonymize File Content

POST
https://text-anonymization-api.p.rapidapi.com
/v1/anonymize/upload

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

Anonymize File ContentRequest Body

  • filestring · required
  • entitiesstring[]

    List of entity types to anonymize

Anonymize File ContentResponses

Successful file anonymization

  • successboolean

    Whether the anonymization was successful

  • anonymized_atstring · date-time

    The timestamp when anonymization was performed

  • anonymized_textstring

    The anonymized text with sensitive information redacted

  • errorstring

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