---
title: "Retrieve latest base Snapshot"
url: https://docs.sentry.io/api/snapshots/retrieve-latest-base-snapshot/
---

# Retrieve latest base Snapshot | Sentry Docs

GET /api/0/organizations/{organization\_id\_or\_slug}/preprodartifacts/snapshots/latest-base/

Retrieve the most recent base snapshot for a given app.

A base snapshot is one uploaded without a `base_sha` (i.e., a snapshot from a base branch like `main`). Use the optional `branch` and `project` parameters to narrow the search.

The response includes the full image list with download URLs. Use `compact_metadata=1` to reduce image metadata.

This endpoint requires a bearer token with `project:read` access.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

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

### Query Parameters:

* `app_id` *(string)*

  REQUIRED

  App identifier to match.

* `branch` *(string)*

  Git branch name to filter on.

* `project`

  Project ID or slug to scope the lookup.

* `compact_metadata` *(string)*

  Set to '1' or 'true' to strip image metadata to display\_name, image\_file\_name, group, description, and image\_url only.

### 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:read`
* `project:releases`
* `project:write`

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

RESPONSESCHEMA

```
Copied
{
  "head_artifact_id": "99",
  "project_id": "1",
  "project_slug": "my-project",
  "app_id": "com.example.app",
  "image_count": 2,
  "images": [
    {
      "key": "a1b2c3d4e5f6",
      "display_name": "Home Screen",
      "group": "iPhone 15",
      "image_file_name": "home_screen_iphone15.png",
      "width": 1170,
      "height": 2532,
      "canvas_theme": "dark",
      "image_url": "/api/0/projects/org-slug/my-project/files/images/a1b2c3d4e5f6/"
    }
  ],
  "diff_threshold": 0.01,
  "date_added": "2025-01-15T10:30:00+00:00",
  "vcs_info": {
    "head_sha": "abc123def456",
    "base_sha": null,
    "head_ref": "main",
    "base_ref": null,
    "head_repo_name": "org/repo",
    "pr_number": null
  }
}
```

---

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.
