---
title: "show operation"
method: GET
path: "/operations/{id}"
tags: ["Operations"]
---

# show operation

`GET /operations/{id}`

## Request

- Base URL: `https://api.aptible.com`
- URL: `https://api.aptible.com/operations/{id}`
- Auth: API key in header `Authorization`

Returns the details of a specific operation by ID.

## Path parameters

- `id` integer, required

## Query parameters

- `no_embed` boolean

## Headers

- `Prefer` 'no_sensitive_extras=true'

## Response `200`

successful

- Operation
  - `id` integer, required
  - `_type` string, required
  - `type` string, required
  - `status` string, required
  - `cancelled` boolean, required
  - `aborted` boolean, required
  - `git_ref` string, required
  - `docker_ref` string, required
  - `deploy_image_id` integer
  - `env` object
  - `container_size` integer, required
  - `container_count` integer, required
  - `disk_size` integer, required
  - `command` string, required
  - `handle` string, required
  - `created_at` string, dateTime, required
  - `updated_at` string, dateTime, required
  - `certificate` string, required
  - `private_key` string
  - `user_name` string, required
  - `user_email` string, required
  - `destination_region` string, required
  - `interactive` boolean, required
  - `instance_profile` string, required
  - `mount_point` string, required
  - `daily` integer, required
  - `monthly` integer, required
  - `yearly` integer, required
  - `pitr_days` integer, required
  - `make_copy` boolean, required
  - `keep_final` boolean, required
  - `enable_backups` boolean, required
  - `enable_pitr` boolean, required
  - `settings` object, required
  - `sensitive_settings` object
  - `_links` OperationLinks
    - `user` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `resource` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `account` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `destination_account` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `ssh_portal_connections` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `ephemeral_sessions` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `code_scan_result` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `deploy_image` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `service` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri
    - `self` ListAccountsForStack200ResponseLinksStack
      - `href` string, uri

## Other responses

- `default`: Error response. Often a 4xx or 5xx status code

## Changes

- **2026-10-20** `ba72edfe0324`: 2 info
  - added the optional property `_links/deploy_image` to the response with the `200` status
  - added the optional property `deploy_image_id` to the response with the `200` status
- **2026-07-24** `1dc1e5b8c6eb`: 3 breaking, 2 info
  - the response property `env` became optional for the status `200`
  - the response property `private_key` became optional for the status `200`
  - the response property `sensitive_settings` became optional for the status `200`
  - added the new optional `header` request parameter `Prefer`
  - …1 more
- **2025-11-14** `a0af32b45330`: 2 info
  - added the required property `sensitive_settings` to the response with the `200` status
  - added the required property `settings` to the response with the `200` status
- **2025-09-23** `feb595c222a1`: 2 info
  - added the required property `enable_backups` to the response with the `200` status
  - added the required property `enable_pitr` to the response with the `200` status
- **2025-06-17** `27e35c041e47`: 6 info
  - added the required property `daily` to the response with the `200` status
  - added the required property `keep_final` to the response with the `200` status
  - added the required property `make_copy` to the response with the `200` status
  - added the required property `monthly` to the response with the `200` status
  - …2 more

[Operation history](https://skmtc.dev/aptible/apis/aptible-api-v1/changes/operations/:id/get.md)

---

[API](https://skmtc.dev/aptible/apis/aptible-api-v1.md) - [All operations](https://skmtc.dev/aptible/apis/aptible-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/aptible/apis/aptible-api-v1/revisions/a21f6b1bc6fe?raw)
