Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Read swarm diagnostics

/api/v1/observability/swarms/{swarm}/diagnosticsGET
Read bounded diagnostics aggregated from retained mission events. The event window is sampled when limited; it does not represent the whole run. Categories can overlap and durations are not additive. Evaluations are reported as evidence and never change mission status. The /missions alias is also accepted.
Requires traces:read. The credential selects the workspace. Errors use a JSON error string; see Errors and limits.
Authorization
ApiKey *Bearer <token>
Workspace API key. Create a key with the scope named by the operation. API keys use separate sharer identities; replacement keys do not inherit sharing ownership.
Query Parameters
at?string (date-time)
Historical cutoff; current retention and workspace permissions still apply.
Response
200 · Success
eventLimit *4096
sampledEvents *integer
Min: 0Max: 4096
limited *boolean
firstAt *string,null (date-time)
lastAt *string,null (date-time)
timing *object
Show properties
measuredRecords *integer
Min: 0
missingEndRecords *integer
Min: 0
categories *object[]
Show item properties
activity *"model" | "tool" | "coordination" | "compaction" | "idle" | "unknown"
durationMs *string
Pattern: ^[0-9]+$
records *integer
Min: 0
measuredRecords *integer
Min: 0
evidence *object[]
Max items: 3
Show item properties
session *string
event *string
usage *object
Show properties
records *integer
Min: 0
unpricedRecords *integer
Min: 0
inputTokens *string
Pattern: ^[0-9]+$
outputTokens *string
Pattern: ^[0-9]+$
usdMicros *stringnull
Pattern: ^[0-9]+$
categories *object[]
Show item properties
purpose *"work" | "coordination" | "compaction" | "unknown"
records *integer
inputTokens *string
Pattern: ^[0-9]+$
outputTokens *string
Pattern: ^[0-9]+$
usdMicros *stringnull
Pattern: ^[0-9]+$
unpricedRecords *integer
evidence *object[]
Max items: 3
Show item properties
session *string
event *string
compactions *integer
Min: 0
evaluations *object
Show properties
records *integer
items *object[]
Max items: 16
Show item properties
session *string
event *string
at *string (date-time)
suite *string
suiteVersion *string
evaluator *string
evaluatorVersion *string
evaluatorKind *"agent" | "external" | "human"
revision *string
baselineRevision *stringnull
result *"passed" | "failed" | "improved" | "regressed" | "unchanged"
receipt *string
delivery *object
Show properties
records *integer
stages *object[]
Show item properties
stage *"opened" | "review_requested" | "approved" | "changes_requested" | "merge_attempted" | "merged" | "conflicted" | "reverted"
records *integer
evidence *object[]
Max items: 3
Show item properties
session *string
event *string
400 · Invalid request
error *string
401 · Missing or invalid credential
error *string
403 · Required scope or sharer permission denied
error *string
404 · Requested evidence unavailable
error *string
503 · Storage or credential verification temporarily unavailable
error *string
Request example
curl -X GET "https://app.halfspan.com/api/v1/observability/swarms/<swarm>/diagnostics" \ -H "Authorization: Bearer <token>"