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.

Path Parameters

agent_id
string
required
run_id
string
required

Body

application/json
approval_request_id
string
required
Minimum string length: 1
approve
boolean
required
reason
string
Required string length: 1 - 2000

Response

MCP approval decision accepted and continuation run created.

object
enum<string>
required
Available options:
agent.run.mcp_approval
approval_request_id
string
required
approved
boolean
required
source_run_id
string
required
continuation_run
object
required