Skip to content
dimmiDocs

AI agent

Test an AI action

POST/api/v1/ai/actions/{action}/tests

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:actions ability

Path parameters

actionstringrequired

Id of the AI agent action, starting with aac_, such as aac_01jx2m8k4t. Find it with GET /ai/actions.

Body

application/json
confirm_side_effectsboolean

Must be true for a live test of a write.

contactobject
Show child attributes
attributesobject

Older 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_attributesobject

Attribute keys and values of the stand-in customer the test runs as, such as {"plan": "pro"}.

emailstring

Email address of the stand-in customer the test runs as, treated as verified, such as ada@example.com.

Maximum length: 320

external_idstring

Your own system's id for the stand-in customer the test runs as, such as user_123.

Maximum length: 256

inputany

Sample input matching the action's input_schema.

modestring

dry_run (default) or live.

Maximum length: 16

versionstring

An 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

Created
dataobjectrequired
Show child attributes
call_idstring | nullrequired

Id 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_textstringrequired

The sentence a customer would be asked to confirm. Same text as summary.

error_codestring | nullrequired

Why the test failed or was blocked, such as invalid_arguments, identity_unavailable, auth_failed or not_found. Null when it went through.

latency_msintegerrequired

How long the request took, in milliseconds. 0 when nothing was sent.

Format: int64

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

requestanyrequired

The request as it was or would be sent, with placeholders filled in. Null when it could not be built.

responseanyrequired

What the API or MCP server answered in a live test. Null for a dry run.

resultanyrequired

The shaped result the model would read from the response. Null for a dry run.

statusstringrequired

How the test went: rendered (dry run built the request), succeeded, failed, or blocked (the request could not be built).

summarystringrequired

Plain sentence of what the call would do, built from the sample arguments.

validation_errorsstring[] | nullrequired

What was wrong with the sample arguments when they did not fit the action's input schema. Empty when they fit.

warningsstring[] | nullrequired

Notes about the test. Currently always an empty list.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.