Details
Agent Token Auth
Machine-to-machine (Bearer token)
Transport: HTTP Authorization: Bearer {token} header. Accepted credentials: primary workspace API key (format: agk_xxx.yyy) or short-lived access token from POST /api/v1/agent_tokens. Access tokens expire after 2,592,000 seconds (30 days). Credentials carry explicit scopes (e.g., traces:write, gateway:check, agent_commands:read).
Socket tokens
Agents can mint a socket token via POST /api/v1/socket_tokens for WebSocket authentication. Socket tokens expire after 600 seconds (10 minutes).