session
Destructive
Saved chat sessions on the Fermat gateway: create one (returns an id and a shareable /s/ link), read its thread, list the wallet's sessions (wallet mode only: signed with the wallet key, no transaction), or delete one. Pass the id as session to chat and the gateway carries the context between turns and visits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | session id (get, delete) | |
| model | No | create: model the session starts with (informational; each chat names its own) | |
| title | No | create: title (defaults to the first message) | |
| action | Yes | create | get | list | delete | |
| system | No | create: system prompt kept for every turn |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| model | No | ||
| title | No | ||
| system | No | ||
| deleted | No | ||
| messages | Yes | ||
| requests | Yes | ||
| sessions | No | ||
| spent_usd | Yes | ||
| expires_at | Yes |