Get a run with its span tree
/api/v2/runs/{runId}AuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
runIdstringrequiredPublic run id (run_xxx).
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
A run with its span tree.
successbooleanrequiredtruedataRunWithSpansrequiredShow propertiesHide properties
idstringrequiredPublic run id (run_xxx).
agentIdstring | nullagentVersionstring | nullenvironmentIdstring<uuid>requirednamestring | nullrequiredstatusstringrequiredrunningsucceededfailedcancelleduserIdstring | nullapplicationstring | nullinputany | nulloutputany | nullerrorobject | nulltokensinteger | nullcostnumber | nulltagsstring[] | nullmetadataobject | nullstartedAtstring<date-time>requiredendedAtstring<date-time> | nulldurationMsinteger | nullspansSpanNode[]requiredShow propertiesHide properties
SpanNodeidstringrequiredPublic span id (span_xxx).
parentIdstring | nullrequiredParent span id, or null for a root span.
namestringrequiredtypeSpanTyperequiredmodel_callcontext_assemblysession_readsession_writememory_recallmemory_writetool_callaction_callapproval_waitapproval_decisionworkflow_stepqueue_deliveryevent_deliverycustomstatusstringrequiredrunningsucceededfailedstartedAtstring<date-time>requiredendedAtstring<date-time> | nulldurationMsinteger | nullmodelstring | nullproviderstring | nulltokensobject | nullcostnumber | nullinputany | nulloutputany | nullerrorobject | nullattributesobject | nullOTel-style attributes, including correlation refs (e.g. messageId).
childrenSpanNode[]requiredShow propertiesHide properties
SpanNodeSpanNode.Bad Request - Invalid input data
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectAuthenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectNot Found - Resource does not exist
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
