API Endpoints

Anonymization API endpoints are accessed from the Anonymization API page on the SAP Business Accelerator HubInformation published on SAP site.

The following API endpoints are available for data pseudonymization:
  • Text: /anonymization/api/v1.0/unstructureddata/pseudonymize/text

  • File: /anonymization/api/v1.0/unstructureddata/pseudonymize/file

Your API response includes the following compressed files:
  • pseudonymized_document.json: Entities are replaced with the defined pseudonyms. If the pseudonymization tag is empty, the default action is to remove the corresponding entity from the pseudonymized text:

    Example: <<PROFILE_TAG>:entity_to_be_pseudonymized_UUID>

  • metadata.json: JSON file with mappings between pseudonyms and their corresponding rentities. This mapping includes comprehensive information about the specific positions where these pseudonyms appear in the pseudonymized text:

    Example: {"report": "<<PROFILE_TAG>: UUID-of-the-entity>":"{"real_entity":"pseudonymized_entity", "positions": [(start_position, end_position), ...]}, ..."}

    Example of a plain text data pseudonymization request:

    Example of a plain text data pseudonymization request with pseudonymization metadata: