Full audit trail for a run including output, steps (tool calls, text), and token usage.
curl --request GET \
--url https://api.case.dev/agent/v1/run/{id}/details \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"agentId": "<string>",
"status": "queued",
"prompt": "<string>",
"guidance": "<string>",
"model": "<string>",
"result": {
"output": "<string>",
"logs": {
"opencode": "<string>",
"runner": "<string>"
}
},
"usage": {
"model": "<string>",
"inputTokens": 123,
"outputTokens": 123,
"toolCalls": 123,
"durationMs": 123
},
"steps": [
{
"id": "<string>",
"type": "output",
"content": "<string>",
"toolName": "<string>",
"toolInput": "<unknown>",
"toolOutput": "<unknown>",
"durationMs": 123,
"timestamp": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}API key starting with sk_case_
Run ID
Run details with full step trace
queued, running, completed, failed, cancelled Final output from the agent
Show child attributes
Token usage statistics
Show child attributes
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.case.dev/agent/v1/run/{id}/details \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"agentId": "<string>",
"status": "queued",
"prompt": "<string>",
"guidance": "<string>",
"model": "<string>",
"result": {
"output": "<string>",
"logs": {
"opencode": "<string>",
"runner": "<string>"
}
},
"usage": {
"model": "<string>",
"inputTokens": 123,
"outputTokens": 123,
"toolCalls": 123,
"durationMs": 123
},
"steps": [
{
"id": "<string>",
"type": "output",
"content": "<string>",
"toolName": "<string>",
"toolInput": "<unknown>",
"toolOutput": "<unknown>",
"durationMs": 123,
"timestamp": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}