RaabtaHQ
Runs & approvals

Runs & approvals

Starting and watching assistant runs, and answering what they ask.

The run object

As returned by GET /runs, one element of the list. Every endpoint below that returns this resource returns exactly these fields.

NameTypeDescription
idrequired
string (uuid)Run id
assistant_idrequired
string (uuid)The assistant running
assistantrequired
object | nullThe assistant, or null if it has since been deleted
assistant.idrequired
string (uuid)Assistant id
assistant.namerequired
stringAssistant name
assistant.colorrequired
string | nullAccent colour
statusrequired
string (enum)Where the run is in its lifecyclequeuedrunningwaiting_replywaiting_approvalwaiting_childrencompletedfailedcancelled
goalrequired
stringWhat this run was asked to do
triggerrequired
objectWhere the run came from
trigger.typerequired
stringOne of manual, inbound_message, schedule, event, webhook or delegation
trigger.trigger_idrequired
string (uuid) | nullThe assistant trigger, when one fired it
trigger.trigger_namerequired
string | nullThat trigger name
trigger.event_keyrequired
string | nullThe event key, for an event trigger
contact_idrequired
string (uuid) | nullThe contact it concerns, if any
conversation_idrequired
string (uuid) | nullThe thread it may answer in, if any
parent_run_idrequired
string (uuid) | nullSet when this is a sub-agent of another run
root_run_idrequired
string (uuid) | nullThe top of the delegation tree
depthrequired
integer0 for a root run
resultrequired
object | nullPresent once the run has ended
result.outcomerequired
string | nullHow it ended, in one word
result.summaryrequired
string | nullOne line on what happened
tick_countrequired
integerModel turns this run has taken
cost_usdrequired
numberBilled AI spend attributed to this run
error_coderequired
string | nullMachine code when the run failed
error_messagerequired
string | nullOperator-facing failure text
started_atrequired
string (date-time)When the run was created
ended_atrequired
string (date-time) | nullWhen it reached a terminal status
created_atrequired
string (date-time)When the row was written

Endpoints

8 endpoints, each on its own page with its parameters, responses, error codes and samples in curl, Node and Python.