---
title: "List attempts with filters"
method: GET
path: "/api/attempts"
tags: ["Attempt"]
---

# List attempts with filters

`GET /api/attempts`

## Query parameters

- `project` string
- `workflow` string
- `include_retried` boolean
- `last_id` integer
- `page_size` integer

## Response `200`

default response

- RestSessionAttemptCollection
  - `attempts` RestSessionAttempt[]
    - `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
    - `index` integer, required — index for multiple attempts
    - `params` object, required — passed parameters as JSON
    - `poolId` string — ID of the pool to which this attempt is assigned.
    - `project` IdAndName, required — Name and ID
      - `id` string, required — ID
      - `name` string, required — name
    - `retryAttemptName` string, required — attempt name for retry
    - `sessionId` string, required — session ID
    - `sessionTime` string, required — session time
    - `sessionUuid` string, uuid, required — unique UUID of this session
    - `status` 'blocked' | 'queued' | 'running' | 'canceling' | 'success' | 'error' | 'killed', required — The current status of the attempt.
    - `success` boolean, required — true if the attempt finished successfully
    - `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)
