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"
}
}Tests the sanitizer with sample text to see detection results for injection, jailbreak, and PII.
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"
}
}Bearer token authentication. Supports two token types:
POST /v1/auth/loginPOST /v1/api-tokens, format: cmnd_<tokenId>.<secret>Test results