---
title: "Get an attempt"
method: GET
path: "/api/attempts/{id}"
tags: ["Attempt"]
---

# Get an attempt

`GET /api/attempts/{id}`

## Path parameters

- `id` integer, required

## Response `200`

default response

- RestSessionAttempt — Response of an attempt
  - `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)
