---
title: "Get a snapshot for a pipeline by pipeline id and snapshot id"
method: GET
path: "/pipelines/{id}/snapshot/{snapshot_id}"
tags: ["Pipeline Operations"]
---

# Get a snapshot for a pipeline by pipeline id and snapshot id

`GET /pipelines/{id}/snapshot/{snapshot_id}`

## Request

- Base URL: `https://replace-with-account.api.decodable.co/v1alpha2`
- URL: `https://replace-with-account.api.decodable.co/v1alpha2/pipelines/{id}/snapshot/{snapshot_id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://auth.decodable.co/authorize?audience=https://api.decodable.co/`
    - Token URL: `https://auth.decodable.co/oauth/token` scopes: `read:pipeline`
- TypeScript: <https://skmtc.dev/decodable/apis/decodable-control-plane/docs/pipelines/:id/snapshot/:snapshot_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

A single snapshot.

- Snapshot
  - `id` string: An identifier for the snapshot
  - `job_id` string: The id of the pipeline or connection that initially created the snapshot.
  - `name` string: The name of the snapshot.
  - `type` 'SCHEDULED' | 'ONE_TIME': The scheduling type of the snapshot.
  - `start_time` string, date-time: The date and time the snapshot was started.
  - `end_time` string, date-time: The date and time the snapshot was completed.
  - `retention_time` string, date-time: The date and time the snapshot will be retained until.
  - `state` 'SCHEDULED' | 'FINISHED' | 'FAILED' | 'EXPIRED' | 'DELETING' | 'DELETED': The current state of the snapshot.

## Other responses

- `400`: An invalid request was received.
- `403`: Access denied: requesting user lacks a required permission.
- `404`: The requested resource does not exist.
- `default`: An error has occurred.

---

[API](https://skmtc.dev/decodable/apis/decodable-control-plane.md) - [All operations](https://skmtc.dev/decodable/apis/decodable-control-plane/llms.txt) - [OpenAPI document](https://skmtc.dev/decodable/apis/decodable-control-plane/revisions/9718a3019da8?raw)
