Skip to main content
POST
Decide an exact agent tool approval

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Headers

akua-context
string
Required string length: 1 - 54

Body

application/json
approval_id
string
required
Pattern: ^(?:apr_)?[a-zA-Z0-9]{1,50}$
binding
string
required
Pattern: ^[a-f0-9]{64}$
revision
integer
required
Required range: 1 <= x <= 9007199254740990
decision
enum<string>
required
Available options:
APPROVE,
REJECT

Response

AgentApprovalAcknowledgement

status
enum<string>
required
Available options:
decided
approval_id
string
required
Pattern: ^(?:apr_)?[a-zA-Z0-9]{1,50}$
session_id
string
required
Pattern: ^(?:ags_)?[a-zA-Z0-9]{1,50}$
turn_id
string
required
Pattern: ^(?:atn_)?[a-zA-Z0-9]{1,50}$
state
enum<string>
required
Available options:
APPROVED,
REJECTED
revision
integer
required
Required range: 2 <= x <= 9007199254740991