AI agent
List a procedure's simulations
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:read ability
Path parameters
procedurestringrequiredId of the AI agent procedure, starting with prc_, such as prc_01jx2m8k4t. Find it with GET /procedures.
Response 200
OKdataobject[] | nullrequiredThe items of this page, as a list; empty when nothing matches.
Show child attributesHide child attributes
action_mocksanyrequiredWhat each mocked action answers, as a JSON object keyed by action, each with an HTTP status and a body.
assertionsanyrequiredWhat must hold after the simulated conversation, as a JSON array of checks, such as a procedure match, an action call, a branch taken, a handover or reply text.
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
last_resultanyrequiredHow its last run went, as a JSON object with passed, ran_at, turns, assertion_results and, on a broken run, error. Null when it never ran.
messagesanyrequiredThe scripted customer messages of the test, in order, as a JSON array; each has text and an optional confirm.
namestringrequiredName of the test, up to 120 characters.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
personaanyrequiredThe made-up customer of the test, as a JSON object with fields such as name, email, verified, channel, attributes and company.
procedure_idstringrequiredId of the procedure the test belongs to (starts with prc_).
scenariostringrequiredWho the customer is and what they came for. The simulated customer answers from it.
simulated_atstring | nullrequiredThe moment the test pretends it is, so date rules such as a refund window give the same result every run. Null to run at the real time.
Format: date-time
source_conversation_idstring | nullrequiredId of the real conversation the test was made from (starts with conv_). Null when it was written by hand.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
linksobjectAddresses of related pages by name, such as next; left out when there are none.
metaobjectrequiredShow child attributesHide child attributes
next_cursorstring | nullrequiredSend it as cursor to read the next page; null on the last page.
per_pageintegerrequiredHow many items a page holds at most, such as 25.
Format: int64
prev_cursorstring | nullrequiredSend it as cursor to read the page before; null on the first page.
totalintegerHow many items match in all; left out when the list does not count them.
Format: int64
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.