Browse the api reference

List Operator Runs

get/v1/graphs/{graph_id}/audit/runs

Part of Graph Audit.

The in-app AI operator runs made on this graph, newest first: each run's question, answer, outcome, cost and the tools it called. This is the record behind a mutation audit entry's operation_id, kept after the operation itself has expired. A graph admin sees every user's runs; any other member sees their own. Filter by thread_id for one conversation.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
graph_idrequiredstringGraph identifier

Constraints: matches ^(kg[a-f0-9]{16,}(?:_[a-zA-Z0-9]{1,20})?|sec(?:_[a-zA-Z0-9]{1,20})?|library)$

Query parameters

NameTypeDescription
thread_idoptionalstringOnly the runs of this thread
user_idoptionalstringOnly runs made as this user (admins; members see their own)
operator_typeoptionalstringOnly runs of this operator
statusoptionalstringOnly runs that ended this way

One of: completed, failed, cancelled

sinceoptionalstring (date-time)Only runs started at or after this time
untiloptionalstring (date-time)Only runs started before this time
cursoroptionalstringThe `next_cursor` of the previous page
limitoptionalintegerRuns per page

Default: 50

Constraints: 1–200

Example request

curl
curl -X GET "https://api.robosystems.ai/v1/graphs/{graph_id}/audit/runs" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY"

Responses

200 Successful Response

FieldTypeDescription
graph_idrequiredstring
runsrequiredOperatorRunSummary[]

One in-app AI operator run: what it was asked and what it answered.

OperatorRunSummary fields
FieldTypeDescription
operation_idrequiredstring

The run's operation id; every mutation audit entry the run made carries it as operation_id

thread_idoptionalstring

The conversation the run belongs to, when the caller threaded it; null for a standalone API call

user_idrequiredstring

The user the run ran as

operator_typerequiredstring

The operator that ran

moderequiredstring

The execution mode the run used

statusrequiredstring

How the run ended

One of: completed, failed, cancelled

questionrequiredstring

The message the run was given

answeroptionalstring

The operator's answer; null when the run did not reach one

erroroptionalstring

Why a failed run failed

credits_consumedoptionalnumber

Credits the run's model calls cost

Default: 0

call_countoptionalinteger

Model calls the run made

Default: 0

tools_calledoptionalstring[]

The tools the run called, each named once

write_countoptionalinteger

Writes the run made to the graph

Default: 0

started_atrequiredstring (date-time)

When the run started on the worker

finished_atrequiredstring (date-time)

When the run ended

duration_msrequirednumber

How long the run took

next_cursoroptionalstring

Pass as cursor for the next, older page; null on the last page

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error