---
title: "List sessions"
method: GET
path: "/sessions"
tags: ["Sessions"]
---

# List sessions

`GET /sessions`

Returns a paginated list of sessions.

## Query parameters

- `limit` union
  - integer
  - string, int32
- `cursor` string

## Response `200`

OK

- PaginatedResponseOfListSessionData
  - `data` ListSessionData[] — Array of resource objects for the current page.
    - `id` string, required — Unique identifier for the session, prefixed with `sess_`.
    - `object` string, required — Always `session`.
    - `status` string, required — Session status: `queued`, `running`, `idle`, `completing`, `completed`, or `failed`.
    - `runtime_ms` union, required — Total session runtime in milliseconds.
      - integer
      - string, int32
    - `task_runs` SessionTaskRunData[], required — Task runs executed within this session.
      - `id` string, required — Unique identifier for the task run.
      - `task_id` string, required — ID of the task that was executed.
      - `agent_id` string, required — ID of the agent that executed the run.
      - `credential_id` string, nullable, required — ID of the credential used for authentication, if any.
    - `created_at` string, date-time, required — ISO 8601 timestamp of when the resource was created.
    - `updated_at` string, date-time, required — ISO 8601 timestamp of when the resource was last updated.
  - `has_more` boolean — `true` if there are more results beyond this page.
  - `next_cursor` string, nullable — Opaque cursor string to pass as the `cursor` query parameter on the next request. `null` when there are no more pages.
  - `request_id` string, nullable — Unique identifier for the API request.

## Other responses

- `400` — Bad request — validation error or malformed input.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not found — the requested resource does not exist.
- `409` — Conflict — the request is valid but cannot be completed in the current state.
- `422` — Unprocessable content — the request body is understood but contains invalid values.
- `429` — Too many requests or session concurrency exceeded. Retry with backoff; honor Retry-After and RateLimit headers when present.
- `500` — Internal server error.

---

[API](https://skmtc.dev/deck/apis/deck-api.md) · [All operations](https://skmtc.dev/deck/apis/deck-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deck/deck-api/revisions/eba6e2cc9351/schema)
