Skip to main content
POST
CSharp (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

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

source
enum<string>
default:user

Test the content as if it came from this source; only guardrails whose input_sources include it run

Available options:
user,
system,
assistant,
tool,
retrieval,
image,
audio

Response

200 - application/json

OK

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