Skip to main content
POST
Python (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Body

application/json
content
string
required

Content to test against guardrails

Response

200 - application/json

OK

object
any
required
passed
boolean
required
triggered_guardrail
enum<string>
Available options:
ban_words,
prompt_injection,
leakage
rejection_message
string
user_input
string
details
object