post/redact

Redact

Request body

Request example
{
  "text": "<Text>",
  "operator": "replace",
  "language": "auto",
  "entities": [
    "string"
  ],
  "session_id": "string"
}

Responses

200Successful Response
Example · 200
{
  "original_text": "<Original Text>",
  "redacted_text": "<Redacted Text>",
  "entities_found": [
    {
      "type": "<Type>",
      "start": 0,
      "end": 0,
      "score": 0,
      "original": "<Original>"
    }
  ],
  "entity_counts": {},
  "detected_language": "<Detected Language>"
}
422Validation Error
Example · 422
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "<Message>",
      "type": "<Error Type>"
    }
  ]
}

Code samples

Generated from the live OpenAPI spec. Replace $SAVITAR_API_KEY with a key from your dashboard.

curl -X POST "https://redact-standalone-service-5j2g6sw72a-el.a.run.app/redact" \
  -H "Authorization: Bearer $SAVITAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "<Text>",
  "operator": "replace",
  "language": "auto",
  "entities": [
    "string"
  ],
  "session_id": "string"
}'