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

Telemetry API

Use https://app.halfspan.com as the API origin. Requests use JSON and authenticate with Authorization: Bearer $HALFSPAN_API_KEY. Create credentials and choose scopes using Scoped API keys.
The credential selects the workspace. Do not send an organization identifier in event batches.
OperationEndpointRequired scope
Code attributionPOST /v1/agent-events (code_attribution)traces:write
Share eventsPOST /v1/agent-eventstraces:write
Investigate swarmsGET /api/v1/observability/swarms and swarm evidence endpointstraces:read
List sessionsGET /api/v1/observability/agent-sessionstraces:read
Read a sessionGET /api/v1/observability/agent-sessions/{session}traces:read
Check sharingPOST /api/v1/cli/trace-statustraces:read
UnsharePOST /api/v1/cli/unsharetraces:write
Read the namespaceGET /api/v1/namespacenamespace:read
Start with a read request:
curl https://app.halfspan.com/api/v1/observability/agent-sessions \ -H "Authorization: Bearer $HALFSPAN_API_KEY"
An empty workspace returns HTTP 200:
{"sessions":[]}
Sessions use UUIDs and a fixed use case: coding, managed, or business. New sessions expire 30 days after creation; appending events does not extend that expiry. Session reads exclude expired and unshared sessions.
For code attribution, share an Agent Trace record inside a standard event batch. For failures, see Errors and limits.

Data handling

API batches store the supplied event fields after validation. Choose what your application emits before ingestion; the API does not act as a secret scanner. Read Privacy and shared data and Data retention and deletion for workspace visibility, 30-day session expiry, and removal. See Authentication to compare credential types.