Skip to content
dimmiDocs

AI agent

List a procedure's versions

GET/api/v1/procedures/{procedure}/versions

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:read ability

Path parameters

procedurestringrequired

Id of the AI agent procedure, starting with prc_, such as prc_01jx2m8k4t. Find it with GET /procedures.

Query parameters

beforeinteger

Version number to page from.

Format: int32 · Minimum: 0

limitinteger

At most 100.

Format: int32 · Minimum: 0 · Maximum: 100

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
change_notestring | nullrequired

The publisher's note on what changed in this version. Null when none was given.

conversationsintegerrequired

How many conversations this version ran in over the last 90 days.

Format: int32

definitionanyrequired

The procedure's definition exactly as published in this version, as a JSON object.

handed_offintegerrequired

How many of those conversations were handed to the team over the last 90 days.

Format: int32

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

namestringrequired

The procedure's name as it was when this version was published.

objectstringrequired

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

procedure_idstringrequired

Id of the procedure this is a version of (starts with prc_).

published_atstringrequired

When this version was published.

Format: date-time

published_by_member_idstring | nullrequired

Id of the teammate who published it (starts with mem_). Null when they are gone.

versionintegerrequired

The version's number within its procedure, counting up with each publish.

Format: int32

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

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.