Read session budget state and subscribe to session state changes.
Session routes let apps monitor an active session-backed Compose Key.Documentation Index
Fetch the complete documentation index at: https://docs.compose.market/llms.txt
Use this file to discover all available pages before exploring further.
| Method | Path | Description |
|---|---|---|
GET | /api/session | Returns the active session state for a wallet and chain. |
GET | /api/session/events | Streams session-active and session-expired events over SSE. |
x-session-user-address for /api/session/events.x-chain-id for /api/session/events.| Event | Description |
|---|---|
session-active | Current active session budget and expiry. |
session-expired | Terminal event when no active session remains. |
error | Stream sync failure. |