---
title: "List sessions of a project with filters"
method: GET
path: "/api/projects/{id}/sessions"
tags: ["Project"]
---

# List sessions of a project with filters

`GET /api/projects/{id}/sessions`

## Path parameters

- `id` integer, required

## Query parameters

- `workflow` string
- `last_id` integer
- `page_size` integer

## Response `200`

default response

- RestSessionCollection
  - `sessions` RestSession[]
    - `id` string, required — session ID
    - `lastAttempt` Attempt — Attempts of session
      - `cancelRequested` boolean, required — true if kill requested
      - `createdAt` string, date-time, required — created time
      - `done` boolean, required — true if the attempt finished
      - `finishedAt` string, date-time — finished time
      - `id` string, required — attempt ID
      - `params` object, required — passed parameters as JSON
      - `poolId` string — ID of the pool to which this attempt is assigned.
      - `retryAttemptName` string
      - `status` 'blocked' | 'queued' | 'running' | 'canceling' | 'success' | 'error' | 'killed', required — The current status of the attempt.
      - `success` boolean, required — true if the attempt finished successfully
    - `project` IdAndName, required — Name and ID
      - `id` string, required — ID
      - `name` string, required — name
    - `sessionTime` string, required — session time
    - `sessionUuid` string, uuid
    - `workflow` NameOptionalId, required — Name and optional ID
      - `id` string — ID
      - `name` string, required — name

---

[API](https://skmtc.net/treasure/apis/treasure-workflow.md) · [All operations](https://skmtc.net/treasure/apis/treasure-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/treasure-workflow/revisions/4eedf1838ef4/schema)
