List sessions
GET /v1/sessions- Permission
read:sessions- Tokens
- API key, CLI user token, Session token
List sessions with filters for time, source, service, agent, user, repository, status, label, annotation, and event.
Query parameters
An agent id, or its name. Only sessions that agent started.
Service that triggered the session, whichever agent answered.
slackgithublinearsentry50integerA user id (see GET /v1/users); keeps only sessions that user started.
"owner/name" (exact) or a bare repo name. Sessions whose repository is named only inside their agent , dashboard starts, cron , do not match.
Keep only sessions in these statuses.
Keep only items with this label. Repeat to require every one.
Keep only items with this annotation, written `key:value`. Repeat to require every one.
A JSON object the session's event must contain, such as {"integration": "github"} or {"body": {"pull_request": {"number": 42}}}. Every field given must match, at any depth. A session with no event never matches.
Response
falsebooleanWhether more results exist past this page.
How many messages each listed session has received, by session id.
Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.
Lean wire rows , the same shape GET /v1/sessions/{id} and the stream's session frames carry. The heavy blobs (config snapshot, input/output) live on the detail endpoints.