Sessions store the conversation history between users and agents. Each session contains messages (user inputs, assistant responses, tool calls, tool results) and can span multiple agent runs. Sessions persist until explicitly deleted, enabling long-running multi-turn conversations.Documentation Index
Fetch the complete documentation index at: https://docs.powabase.ai/llms.txt
Use this file to discover all available pages before exploring further.
Common Patterns
Sessions are created automatically when you run an agent without a session_id. To continue a conversation, pass the session_id from the start event of a previous run. Retrieve message history with GET /api/sessions/{id}/messages to display conversation context.GET /api/sessions/
Get a session by ID.Session ID
GET /api/sessions//messages
Get assembled chat messages for a session.Session ID
GET /api/sessions//runs
List all agent runs within a session.Session ID
DELETE /api/sessions/
Delete a session and all its runs.Session ID
Error Responses
| Status | Code | Description |
|---|---|---|
| 404 | session_not_found | No session exists with the given ID |