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.| Operation | Endpoint | Required scope |
| Code attribution | POST /v1/agent-events (code_attribution) | traces:write |
| Share events | POST /v1/agent-events | traces:write |
| Investigate swarms | GET /api/v1/observability/swarms and swarm evidence endpoints | traces:read |
| List sessions | GET /api/v1/observability/agent-sessions | traces:read |
| Read a session | GET /api/v1/observability/agent-sessions/{session} | traces:read |
| Check sharing | POST /api/v1/cli/trace-status | traces:read |
| Unshare | POST /api/v1/cli/unshare | traces:write |
| Read the namespace | GET /api/v1/namespace | namespace:read |
12curl https://app.halfspan.com/api/v1/observability/agent-sessions \ -H "Authorization: Bearer $HALFSPAN_API_KEY"
200:1{"sessions":[]}
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.