post/patterns/test

Test Pattern

Request body

Request example
{
  "patterns": [
    "string"
  ],
  "sample_text": "<Sample Text>"
}

Responses

200Successful Response
Example · 200
{
  "matches": [
    {
      "match": "<Match>",
      "start": 0,
      "end": 0,
      "pattern": "<Pattern>"
    }
  ],
  "match_count": 0
}
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/patterns/test" \
  -H "Authorization: Bearer $SAVITAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "patterns": [
    "string"
  ],
  "sample_text": "<Sample Text>"
}'