A session is a wallet budget on one chain. The API stores live budget state, reserves part of that budget before work starts, and settles or releases the reservation when the request ends. The spendable amount is: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.
Read session state
none, expired, revoked, budget_exhausted, missing_budget_state, and invalid_key.
Reserve and settle
The reservation step matters. A long streaming request can hold budget while it runs, so two parallel calls cannot spend the same remaining amount.Session events
Response headers
| Header | Meaning |
|---|---|
x-payment-method | session-bypass for active session requests. |
x-session-budget-limit | Total budget. |
x-session-budget-used | Settled usage. |
x-session-budget-locked | Reserved amount. |
x-session-budget-remaining | Spendable amount left. |
x-session-status | Warning such as budget-low, budget-depleted, or expiring-soon. |
x-compose-session-invalid | Why a session key no longer works. |