AI agent
List a procedure's versions
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.
Query parameters
beforeintegerVersion number to page from.
Format: int32 · Minimum: 0
limitintegerAt most 100.
Format: int32 · Minimum: 0 · Maximum: 100
Response 200
OKdataobject[] | nullrequiredThe items of this page, as a list; empty when nothing matches.
Show child attributesHide child attributes
change_notestring | nullrequiredThe publisher's note on what changed in this version. Null when none was given.
conversationsintegerrequiredHow many conversations this version ran in over the last 90 days.
Format: int32
definitionanyrequiredThe procedure's definition exactly as published in this version, as a JSON object.
handed_offintegerrequiredHow many of those conversations were handed to the team over the last 90 days.
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.
namestringrequiredThe procedure's name as it was when this version was published.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
procedure_idstringrequiredId of the procedure this is a version of (starts with prc_).
published_atstringrequiredWhen this version was published.
Format: date-time
published_by_member_idstring | nullrequiredId of the teammate who published it (starts with mem_). Null when they are gone.
versionintegerrequiredThe version's number within its procedure, counting up with each publish.
Format: int32
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.