AI agent
Test an AI action
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:actions ability
Path parameters
actionstringrequiredId of the AI agent action, starting with aac_, such as aac_01jx2m8k4t. Find it with GET /ai/actions.
Body
application/jsonconfirm_side_effectsbooleanMust be true for a live test of a write.
contactobjectShow child attributesHide child attributes
attributesobjectOlder name for custom_attributes, read only when custom_attributes is left out. Attribute keys and values of the stand-in customer, such as {"plan": "pro"}.
custom_attributesobjectAttribute keys and values of the stand-in customer the test runs as, such as {"plan": "pro"}.
emailstringEmail address of the stand-in customer the test runs as, treated as verified, such as ada@example.com.
Maximum length: 320
external_idstringYour own system's id for the stand-in customer the test runs as, such as user_123.
Maximum length: 256
inputanySample input matching the action's input_schema.
modestringdry_run (default) or live.
Maximum length: 16
versionstringAn optional text of at most 16 characters that is accepted but not used: a test always runs the action's working copy. Leave it out.
Maximum length: 16
Response 201
CreateddataobjectrequiredShow child attributesHide child attributes
call_idstring | nullrequiredId of the call recorded for a live test, such as aax_... Null for a dry run or a test that was stopped before sending.
confirmation_textstringrequiredThe sentence a customer would be asked to confirm. Same text as summary.
error_codestring | nullrequiredWhy the test failed or was blocked, such as invalid_arguments, identity_unavailable, auth_failed or not_found. Null when it went through.
latency_msintegerrequiredHow long the request took, in milliseconds. 0 when nothing was sent.
Format: int64
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
requestanyrequiredThe request as it was or would be sent, with placeholders filled in. Null when it could not be built.
responseanyrequiredWhat the API or MCP server answered in a live test. Null for a dry run.
resultanyrequiredThe shaped result the model would read from the response. Null for a dry run.
statusstringrequiredHow the test went: rendered (dry run built the request), succeeded, failed, or blocked (the request could not be built).
summarystringrequiredPlain sentence of what the call would do, built from the sample arguments.
validation_errorsstring[] | nullrequiredWhat was wrong with the sample arguments when they did not fit the action's input schema. Empty when they fit.
warningsstring[] | nullrequiredNotes about the test. Currently always an empty list.
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.