---
title: "Get all operations for a deployment"
method: GET
path: "/projects/{project_id}/deployments/{deployment_id}/operations"
tags: ["Deployments"]
---

# Get all operations for a deployment

`GET /projects/{project_id}/deployments/{deployment_id}/operations`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/deployments/{deployment_id}/operations`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `deployment_id` string, required

## Response `200`

List of operations

- OperationResultsResponse
  - `deployment_id` string, required
  - `operations` OperationResultResponse[], required
    - `data` DeploymentOperationDetails, required: The project and deployment the record belongs to, plus the stored image once a `take_screenshot` has completed.
      - `deployment_id` string, required
      - `project_id` integer, required
      - `screenshot` DeploymentScreenshotCapture, nullable: A screenshot captured by a `take_screenshot` operation.
        - `captured_at` string, date-time, required
        - `screenshot_location` string, required: Image path relative to the static files directory, as recorded on the deployment's `screenshot_location`.
        - `url` string, required: Deployment URL that was captured.
    - `executed_at` string, date-time, required
    - `message` string, required
    - `operation` string, required
    - `status` 'pending' | 'completed' | 'failed', required: `pending` while background work (a screenshot capture) runs, then `completed` or `failed`. Poll `GET …/operations/{operation_type}` for the outcome.
    - `success` boolean, nullable: The outcome, final only once `status` is terminal: `null` while the operation is `pending`, `true` when it `completed`, `false` when it `failed`. Read `status` first; a `null` here is not a failure.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Deployment not found
- `500`: Internal server error

## Changes

- **2026-10-11** `1bfd419deb2f`: 2 breaking
  - the response property `operations/items/success` became nullable for the status `200`
  - the response property `operations/items/success` became optional for the status `200`
- **2026-10-10** `e75811e4d169`: 1 breaking, 5 info
  - the `operations/items/data` response's property type changed from no type to `object` for status `200`
  - added the optional property `operations/items/data/screenshot` to the response with the `200` status
  - the response property `operations/items/data` became required for the status `200`
  - added the required property `operations/items/data/deployment_id` to the response with the `200` status
  - …2 more
- **2026-07-01** `d83dcb738585`: 1 info
  - api tag `Deployments` added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/deployments/:deployment_id/operations/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
