---
title: "Build a Snapshot Archive"
url: https://docs.sentry.io/api/snapshots/build-a-snapshot-archive/
---

# Build a Snapshot Archive | Sentry Docs

ExperimentalThis API is under active development and may change.

POST /api/0/organizations/{organization\_id\_or\_slug}/preprodartifacts/snapshots/{snapshot\_id}/archive/

Start building a zip archive of a snapshot's images and its manifest.

The archive is built in the background, and the requesting user gets an email with a download link when it's ready. Poll the GET method of this endpoint to see when it's ready. Each request starts another build and sends another email.

Returns 404 when the snapshot doesn't exist, the requester can't access its project, or it has no image manifest, and 503 when the build couldn't be queued.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

* `snapshot_id` *(string)*

  REQUIRED

  The ID of the snapshot.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:ci`
* `project:admin`
* `project:releases`
* `project:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/archive/ \
 -H 'Authorization: Bearer <auth_token>'
```

RESPONSESCHEMA

```
Copied
{
  "detail": "Building your snapshot archive — we'll email you a download link when it's ready."
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
