The auth service is deployed on a private network. All endpoints except /health are internal management-plane operations.
Request Body
JTI of the parent agent or subagent token.
Type of the parent token. Accepted values: agent, subagent.
Unique session identifier (e.g., session-2026-03-01-abc).
Maximum number of events this session can process. Exceeding this limit returns a 429 error.
Time-to-live in minutes. Defaults to 60.
Response
The session token string, prefixed with qt_session_. This is an ES256-signed JWT.
The session identifier echoed back.
The maximum event count for this session.
ISO 8601 expiration timestamp.
curl -X POST http://localhost:8001/tokens/session \
-H "Content-Type: application/json" \
-d '{
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"parent_jti": "c1d2e3f4-a5b6-7890-cdef-1234567890ab",
"parent_type": "agent",
"session_id": "session-2026-03-01-abc",
"max_events": 1000,
"ttl_minutes": 60
}'
{
"token": "qt_session_eyJhbGciOiJFUzI1NiIs...",
"jti": "e3f4a5b6-c7d8-9012-ef01-345678901bcd",
"session_id": "session-2026-03-01-abc",
"max_events": 1000,
"expires_at": "2026-03-01T01:00:00Z"
}