Skip to main content
POST
Decide a request for an agent

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

id
string
required
Required string length: 1 - 160
requestId
string
required
Required string length: 1 - 160

Body

application/json
decision
enum<string>
required
Available options:
deny,
allow_once,
always_allow,
approve

Response

Request decided.

id
string
required
Required string length: 1 - 160
agentId
string
required
Required string length: 1 - 160
kind
enum<string>
required
Available options:
tool,
change
status
enum<string>
required
Available options:
pending,
denied,
allowed_once,
always_allowed,
approved,
used
requestedBy
object
required
runId
string | null
required
Required string length: 1 - 160
connectionId
string | null
required
Maximum string length: 160
connectionName
string | null
required
Maximum string length: 160
toolName
string | null
required
Maximum string length: 128
toolTitle
string | null
required
Maximum string length: 240
summary
string | null
required
Maximum string length: 500
change
object | null
required
decidedBy
object | null
required
decidedAt
string<date-time> | null
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
canDecide
enum<string>[]
required

The decisions the caller may make on this request; empty when it is not theirs to decide or already decided.

Available options:
deny,
allow_once,
always_allow,
approve
requestedByCaller
boolean
default:false

True when the caller is the person the request is for.