session_id cookie stored in Cloudflare KV.
Session endpoints are designed for browser clients. For API automation, track JWTs per address directly instead of using session management.
List session addresses
GET /api/session/addresses
Returns all addresses in the current session and which one is active.
Switch active address
POST /api/switch_address
Switches the active inbox. Updates the jwt cookie to the JWT for the selected address. Also rotates the session_id for security.
Logout
POST /api/logout
Deletes the session from KV storage and clears jwt and session_id cookies.