Skip to main content

Obfuscate sensitive data in text

POST 

/api/v2/Anonymizer/obfuscate

Detects the requested categories in the text and returns the obfuscated text together with the detected entities (category, key, original value, original start/end positions and score). Positions always refer to the original text. When no categories are supplied, all supported categories are detected. When no vendor is supplied, the default one is used.

Request​

Query Parameters

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

The text to obfuscate, plus the optional vendor to detect with and the categories to detect.

    vendor stringnullable

    The vendor to detect with (e.g. OpenAIPrivacyFilter). Optional; when omitted, the default vendor is used.

    inputs stringnullable

    The plain text to analyze and obfuscate.

    categories string[]nullable

    Entity categories to detect and obfuscate (e.g. private_person). Optional; when omitted or empty, all categories supported by the vendor are detected.

    categoryOptions

    object[]

    nullable

    Optional per-category overrides (key and/or threshold).

  • Array [

  • category stringnullable

    The category these overrides apply to (must also appear in the request's categories list).

    key stringnullable

    Base key used to label detections of this category (e.g. Person yields Person-1). When omitted, the uppercased category is used (e.g. PRIVATE_PERSON-1).

    threshold doublenullable

    Confidence threshold in [0, 1]; detections below it are discarded. When omitted, the system default confidence threshold is used.

  • ]

Responses​

Returns the obfuscated text and the detected entities.

Schema

    text stringnullable

    The input text with every detected entity replaced by its placeholder.

    spans

    object[]

    nullable

    The detected entities, in order of appearance. Empty when nothing was detected.

  • Array [

  • entity_group stringnullable

    The detected entity category (e.g. private_person).

    key stringnullable

    The indexed key identifying this detection (e.g. PRIVATE_PERSON-1).

    word stringnullable

    The original matched value.

    start int32

    Inclusive start index of the match in the original text.

    end int32

    Exclusive end index of the match in the original text.

    score double

    The confidence score used to decide the obfuscation.

    placeholder stringnullable

    The placeholder token that replaced the value in text.

  • ]

  • provider stringnullable

    The vendor that produced the result.

Loading...