Browse the api reference

Get Operator Run

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

Part of Graph Audit.

One operator run with its full paper trail: the history it was seeded with, every model call with the tool calls it made and the results it read, the answer, and the response metadata. Readable by a graph admin or by the user who made the run.

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)$

operation_idrequiredstringThe run's operation id

Example request

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

Responses

200 Successful Response

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

historyoptionalobject[]

The prior turns the run was given, as role/content pairs

transcriptoptionalobject[]

One entry per model call, in order: the input added since the previous call (the question, then each turn's tool results), the model's output blocks (text and tool calls), stop reason, token usage and credits. The first entry also carries the system prompt's SHA-256 and size and the tool names offered; later entries repeat them only when they change

resultoptionalobject

The response envelope's metadata without its result rows: tokens, credits, the Cypher run, the writes made, confidence and loop flags

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