Overview
Agent sessions are conversation threads backed by the Gizzi runtime on your data-plane node. The public path is on the Cloud API: it authenticates the Clerk session, resolves your default healthy node, and relays the request to Allternit API. Session rows live in that node’s SQLite, not in Cloud API Postgres. The node translates the session contract (/api/v1/agent-sessions) into the Gizzi runtime contract (/v1/session/*). Sessions support messages, abort, revert/unrevert, compaction, ephemeral incognito chats, and real-time event synchronization via SSE.
HTTP 428 means this account has no healthy paired or provisioned node. Pair a desktop/VPS or start a provisioned instance, then retry.
Base URL
http://127.0.0.1:8013/api/v1.
Authentication
All production requests must include a Clerk session JWT in theAuthorization header. The Cloud API forwards that header to the node. Gizzi-specific Basic auth is handled internally on the node when GIZZI_PASSWORD / GIZZI_SERVER_PASSWORD is configured.
Session object
Endpoints
List sessions
Query parameters
Example request
Example response
Create a session
Request body
Example request
Example response
The surface
design is normalized to chat for Gizzi compatibility; the original value is preserved in metadata.originSurface.Get a session
Example request
Example response
Same shape as the create response.Update a session
Request body
Example request
Example response
Same shape as the create response, withactive: false.
Delete a session
Example response
204 No Content
List messages
Example response
Send a message
role: "user" messages are forwarded to the runtime; other roles are accepted locally and echoed back immediately.
Request body
Example request
Example response
Same shape as a message fromlist messages.
Abort a session
Example response
Revert a session
Request body
Example response
Same shape asget session.
Unrevert a session
Example response
Same shape asget session.
Compact a session
Example response
Sync sessions (SSE)
Last-Event-ID reconnection.