---
title: "List recent and in-flight operations"
method: GET
path: "/operations"
tags: ["Operations"]
---

# List recent and in-flight operations

`GET /operations`

## Request

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

Deployments, rollbacks, promotions, restores, backups and autofix runs the
caller can see, newest first (`created_at` DESC, fixed). Finished
operations older than 7 days are omitted; operations still in flight are
always included. Redeploys are reported as `deployment` — no column
distinguishes them.

## Query parameters

- `page` integer
- `page_size` integer
- `status` 'running' | 'waiting' | 'finished' | 'all': Which slice of the feed to return.
- `kind` 'deployment' | 'rollback' | 'promotion' | 'restore' | 'backup' | 'autofix': What kind of operation an entry describes.
- `project_id` integer

## Response `200`

A page of operations

- OperationsListResponse: A page of the operations feed. Sorted by `created_at` descending (fixed).
  - `operations` OperationEntry[], required
    - `agent_run_id` integer, nullable
    - `backup_id` integer, nullable
    - `created_at` string, date-time, required
    - `deployment_id` integer, nullable
    - `environment_id` integer, nullable
    - `environment_name` string, nullable
    - `failure_reason` string, nullable: Why the operation failed or was cancelled, when known.
    - `finished_at` string, date-time, nullable
    - `id` string, required: Stable unique id, `<source>:<row id>` (e.g. `deployment:123`).
    - `kind` 'deployment' | 'rollback' | 'promotion' | 'restore' | 'backup' | 'autofix', required: What kind of operation an entry describes.
    - `link` string, required: Console path of the resource's detail page.
    - `phase` string, nullable: Source-specific phase, when the source records one (restores, autofix).
    - `project_id` integer, nullable: Owning project. For restores and backups this is set only when the service is linked to exactly one project.
    - `project_slug` string, nullable
    - `restore_run_id` integer, nullable
    - `service_id` integer, nullable: Storage service the operation acts on (the restore's source service, or the backed-up service).
    - `service_name` string, nullable
    - `started_at` string, date-time, nullable
    - `status` 'queued' | 'running' | 'waiting' | 'succeeded' | 'failed' | 'cancelled', required: Normalised lifecycle state of an operation.
    - `title` string, required: Human-readable label, e.g. "Rollback to deployment #41".
    - `triggered_by_user_id` integer, nullable: User who started it, when the source records one. Deployments do not.
  - `page` integer, required
  - `page_size` integer, required
  - `running_count` integer, required: Queued and running operations matching the scope, `kind` and `project_id` filters — independent of the `status` filter, so the tray badge stays correct while browsing finished operations.
  - `total` integer, required: Operations matching every filter.

## Other responses

- `400`: Invalid query
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-16** `b3ce6440036a`: 1 info
  - added the new enum value `waiting` to the `query` request parameter `status`
- **2026-10-07** `2e9a6212c4d0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/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)
