List sessions
List agent sessions visible to the caller, filtered by app, surface, archive status, and team.
Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 1,000 requests/minute; 50 requests/second per account |
| Permissions | None — any valid app_key can call this operation |
Usage
- Pagination uses
p/limit(max 100);scopedefaults toall(own + member-of-team rows). is_runningreflects the live run-set;has_unreadis computed per calling user.
Authorizations
App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.
Body
Filters for listing agent sessions. Reads are scoped to the resolved account and the caller's visible teams.
Agent app whose sessions to list.
ask-ai, support, support-website, support-flashcat, ai-sre, template-assistant, swe Page number, 1-based.
x >= 1Page size, 1–100.
1 <= x <= 100Sort field.
created_at, updated_at Ascending order when true; applies only when orderby is set.
Include subagent-dispatched sessions in the list.
Filter by session-name keyword.
64Visibility scope: all (own + member-of-team rows, default), personal, or team.
all, personal, team Optional explicit team filter; intersects with scope.
Restrict to sessions produced by these surfaces; empty returns every kind.
web, im, api, automation Archive bucket: active (default) returns un-archived, archived returns archived, all returns both.
active, archived, all Response
Success
Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.