Exchanges a refresh token + a profileId for a short-lived session
token scoped to that profile. This single endpoint covers three flows:
profileId.profileId, after the previous session
token expired.Each call produces a fresh sessionId, which is the seed for the
recommendation snapshot. Refreshing the session token therefore refreshes
the snapshot.
Auth tier: identity (refresh token in Authorization: Bearer).
Documentation Index
Fetch the complete documentation index at: https://docs.discovr.media/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication.
/profiles, /auth/session-token,
/auth/session) accept a long-lived refresh token
(rt_<hex>)./pages/*, /profile/*) accept a
short-lived session JWT.SDK clients use two typed API accessors (identityApi() with the
refresh token vs sessionApi() with the session JWT) — see the SDK
DiscovrAuth helper.
Format: Authorization: Bearer {token}
The profile to bind the session to. Must belong to the authenticated user (the refresh token in the Authorization header).
"profile_abc123"
A new session token.
Short-lived (30 minute) session JWT. Use as the bearer for
session-tier endpoints (/pages/*, /profile/*).
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Discovery-session id embedded in the JWT. Also written onto pages and rows created during this session for downstream analytics.
"feedfacefeedfacefeedfacefeedface"
Session-token expiry as Unix seconds. Equals the JWT's exp claim.
1733091000