Skip to main content
POST
/
v1
/
admin
/
sanitizer
/
test
Test sanitizer with sample text
curl --request POST \
  --url http://co-mind-platform-host/v1/admin/sanitizer/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>",
  "context": "<string>",
  "check_type": "input"
}
'
{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "bad_request"
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Supports two token types:

  • JWT Access Token — obtained via POST /v1/auth/login
  • Personal Access Token (PAT) — created via POST /v1/api-tokens, format: cmnd_<tokenId>.<secret>

Body

application/json
text
string
required

Text to test

context
string

Optional context for PII rules

check_type
enum<string>
default:input

Type of check to perform

Available options:
input,
content

Response

Test results