# Saved sessions A session keeps a conversation on the gateway under an unguessable id, so a client comes back by link and continues without resending the context — the same id works from the API and the MCP server. Create one, then name it in each request; the gateway prepends the stored history and appends the turn: ```bash curl -s -X POST https:///v1/sessions -H 'content-type: application/json' -d '{"system":"Be brief."}' # → {"id":"","url":"https:///s/", ...} curl -s -X POST https:///v1/chat/completions -H 'content-type: application/json' \ -d '{"model":"gpt-oss-120b","session":"","messages":[{"role":"user","content":"Next question…"}]}' curl -s https:///v1/sessions/ # the thread, model, spend, expiry # PATCH {title, system, messages} edits it; DELETE ends it. Open https:///s/ to continue on the site. ``` The id is the capability: anyone holding the link can read and continue the thread, so share it like a document link. Paid turns are still paid per request by whoever sends them. Sessions store the texts (receipts store only hashes), are bounded in size and pruned after a period without use (both shown by the gateway; 200 messages and 90 days by default). With the OpenAI SDKs pass `session` through `extra_body` / the request options. A wallet lists its own sessions with `POST /v1/sessions/list` and its payments, batches and totals with `POST /v1/account`, both behind an EIP-712 `Account(owner, issuedAt)` signature (domain `Phase AI` / `1` / the payment chain id; no transaction; the older `SessionList` form is accepted too) — the MCP `session` tool does exactly that; a session is the payer's from its first paid turn.