List tasks
Tasks
List tasks
List the caller’s sessions, grouped. Each session is summarized; the full per-task detail is available via GET /v1/sessions/.
GET
List tasks
Query parameters
How many sessions to return. Capped at 100.
Response — 200 OK
Array of session summaries, most-recent-first.
SessionSummary contains:
The first task in the session — useful for displaying the session’s “title” in a UI.
Total tasks in the session.
Status of the most recent task in the session.
Example
Notes
- Grouping is server-side. The response gives you one row per conversation, not one row per task. That’s usually what you want for building a “chat history” sidebar in your UI.
- Pagination. v1 doesn’t support cursor-based paging. If you need more than 100 sessions, filter by
endUserId(coming soon as a dedicated endpoint) or query DynamoDB directly if you have that access. - No cross-tenant data. You only see sessions belonging to your own business.
Errors
| Code | Meaning |
|---|---|
401 | Missing Authorization header |
