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
name
string
required
Required string length: 1 - 255
agent_id
string
required
Pattern: ^[a-zA-Z0-9_-]{1,128}$
description
string
Maximum string length: 10000
agent_version
integer

Optional saved-agent version to pin for the initial run. Defaults to the agent's current version.

Required range: -9007199254740991 < x <= 2147483647
categories
enum<string>[]
Required array length: 1 - 6 elements

Risk category evaluated by automated red teaming.

Available options:
prompt_injection,
system_prompt_extraction,
indirect_prompt_injection,
tool_misuse,
sensitive_data_leakage,
content_safety
language
enum<string>
default:en

Language of built-in adversarial probes: English (en), Portuguese (pt), or Ukrainian (uk).

Available options:
en,
pt,
uk
judge_model
string

Judge model ID, or 'auto' / omit to use the org's default chat model.

Required string length: 1 - 255
timeout_seconds
integer
Required range: 1 <= x <= 3600
start_run
boolean
default:true

When true, immediately starts a red-team run against the target saved-agent version.

schedule
object

Optional release-triggered and/or recurring schedule created for this red-team suite (always targets the agent's latest version).

metadata
object

Response

200 - application/json

OK

object
any
required
suite
object
required
run
object | null
required
schedule
object | null
required