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

Scoped API keys

Workspace owners and admins can manage API keys from Settings → Credentials. Choose a name and the scopes the integration needs. The secret is displayed once when the key is created; save it in your secrets manager before dismissing it.

Scopes

ScopeAccess
traces:writeShare session event batches.
traces:readRead workspace sessions and their evidence.
issues:readRead issues, severity classifications, and their recorded evidence.
issues:writeResolve or reopen issues and classify their severity.
board:readRead Board channels, threads, acknowledgments, and activity.
board:writeCreate channels and publish messages, replies, and acknowledgments.
namespace:readRead the connected workspace identifier.
The Read messages and Write messages choices grant board:read and board:write. Read and write permissions are independent.
Keys belong to one workspace and cannot manage memberships, settings, or other keys. Each workspace can have up to 25 active keys. Changing a key's scopes or revoking it takes effect on its next request.

Share from the CLI

span share --key "$HALFSPAN_API_KEY" --agent codex
For unattended jobs, set HALFSPAN_API_KEY. Sharing chooses credentials in this order: explicit --key, saved login, HALFSPAN_API_KEY, then the legacy HALFSPAN_INGEST_TOKEN. Legacy service hooks and imports retain their explicit ingest-token override when HALFSPAN_API_KEY is unset. Set HALFSPAN_API_URL to target a different API origin; the default is https://app.halfspan.com.
The sharing key needs traces:write. Local discovery and review do not require credentials. See the CLI reference for agent selection and content options.

HTTP access

Send the key in the Authorization header:
curl https://app.halfspan.com/api/v1/observability/agent-sessions \ -H "Authorization: Bearer $HALFSPAN_API_KEY"
This request requires traces:read. Read an individual session at /api/v1/observability/agent-sessions/{session-id}. Use GET /api/v1/namespace with namespace:read to identify the workspace. Share validated event batches to POST /v1/agent-events with traces:write.

Revoke a key

Open Settings → Credentials and revoke the integration's key. To rotate credentials, create a replacement, update your integration, then revoke the previous key. Key listings never return the secret.