AI agent
Approve or decline an AI action call
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:write ability
Path parameters
callstringrequiredId of the action call, starting with aax_, such as aax_01jx2m8k4t. Find it with GET /ai/action-calls.
Body
application/jsoncustomer_messagestringAfter a decline, what the agent passes on to the customer.
Maximum length: 500
reasonstringWhy, for the team only.
Maximum length: 500
statusstringrequiredapproved or declined.
Available options:approveddeclined
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
action_idstringrequiredId of the action that was called, such as aac_... Send it wherever an action is asked for.
action_version_idstring | nullrequiredId of the published version of the action that ran, such as aacv_... Null when no version is recorded.
approvalstringrequiredWho on the team had to approve the call: none, teammate or admin.
cancel_reasonstring | nullrequiredWhy the call was canceled: customer (the customer declined to confirm) or superseded (the agent proposed a newer write). Null when not canceled.
completed_atstring | nullrequiredWhen the call finished or was canceled. Null while it still waits or runs.
Format: date-time
confirmationstringrequiredWhether the customer had to confirm the call: none or customer.
confirmed_atstring | nullrequiredWhen the customer confirmed the call. Null when no confirmation was asked or it has not been given.
Format: date-time
connection_idstringrequiredId of the connection the call went through, such as acn_...
conversation_idstring | nullrequiredId of the conversation the call was made in, such as conv_... Null for a call made outside a conversation, such as a test.
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
customer_messagestring | nullrequiredThe message the agent passes on to the customer after a teammate declined the call. Null when none was written.
decided_atstring | nullrequiredWhen a teammate approved or declined the call. Null when no approval was needed or none has been given.
Format: date-time
decided_by_member_idstring | nullrequiredId of the teammate who approved or declined the call, such as mem_... Null when nobody decided.
decision_reasonstring | nullrequiredThe teammate's internal reason for approving or declining, never shown to the customer. Null when none was given.
error_codestring | nullrequiredWhy the call failed, such as auth_failed, not_found, upstream_rejected, rate_limited, unavailable, host_blocked or response_too_large. Null when it did not fail.
expires_atstring | nullrequiredWhen a call waiting for verification, confirmation or approval lapses. Null once it no longer waits.
Format: date-time
http_statusinteger | nullrequiredHTTP status the workspace's API answered with, such as 200 or 404. Null when no answer was received.
Format: int32
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
inputanyThe arguments the model gave, frozen when the call was proposed. Left out unless the caller may read payloads.
latency_msinteger | nullrequiredHow long the request took, in milliseconds. Null when nothing was sent.
Format: int32
message_idstring | nullrequiredId of the agent's message that told the customer about the call, such as msg_... Null when there is none.
modestringrequiredWhether the call was real or a trial: live for a call in a conversation, test for a test of the action.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
reported_atstring | nullrequiredWhen the customer was told how the call ended, or it was settled that nobody needs to be told. Null until then.
Format: date-time
requestanyThe request that was sent, as JSON. Left out unless the caller may read payloads.
requested_atstringrequiredWhen the agent asked for the call.
Format: date-time
responseanyWhat the workspace's API or MCP server answered, as JSON. Left out unless the caller may read payloads.
resultanyThe shaped result the model read: only the mapped response fields, or an error and message. Left out unless the caller may read payloads.
run_idstring | nullrequiredId of the agent run that asked for the call, such as air_... Null when there is none.
sent_atstring | nullrequiredWhen the request was sent. Null when nothing has been sent yet.
Format: date-time
side_effectstringrequiredWhether the call only reads data (read) or changes something (write).
statestringrequiredWhere the call stands: awaiting_verification, awaiting_confirmation, pending_approval, approved, declined, expired, canceled, running, succeeded or failed.
summarystringrequiredPlain sentence of what the call will do, built from the checked arguments. This is what a customer confirms or a teammate approves.
titlestringrequiredThe action's short name at the time of the call, such as Refund an order.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.