---
title: "Get the latest installable build for a project"
url: https://docs.sentry.io/api/mobile-builds/get-the-latest-installable-build-for-a-project/
---

# Get the latest installable build for a project | Sentry Docs

GET /api/0/projects/{organization\_id\_or\_slug}/{project\_id\_or\_slug}/preprodartifacts/build-distribution/latest/

Get the latest installable build for a project.

Returns the latest installable build matching filter criteria. When buildVersion is provided, also returns the current build and whether an update is available.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

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

* `project_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.

### Query Parameters:

* `appId` *(string)*

  REQUIRED

  App identifier (exact match).

* `platform` *(string)*

  REQUIRED

  **choices**:

  * `apple
    android`

  Platform: "apple" or "android".

  * `apple` - Apple
  * `android` - Android

* `buildVersion` *(string)*

  Current build version. When provided, enables check-for-updates mode.

* `buildNumber`

  Current build number. Accepts a plain integer (e.g. 42) or a version string of two or more period-separated integers (e.g. 1.2.3), each up to 6 digits. Groups beyond the third are dropped. Either this or mainBinaryIdentifier must be provided when buildVersion is set.

* `mainBinaryIdentifier` *(string)*

  UUID of the main binary (e.g. Mach-O UUID for Apple builds). Either this or buildNumber must be provided when buildVersion is set.

* `buildConfiguration` *(string)*

  Filter by build configuration name (exact match).

* `codesigningType` *(string)*

  Filter by code signing type.

* `installGroups` *(array(string))*

  Filter by install group name (repeatable for multiple groups).

### Scopes

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

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

* `project:admin`
* `project:distribution`
* `project:read`
* `project:write`

```
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/preprodartifacts/build-distribution/latest/ \
 -H 'Authorization: Bearer <auth_token>'
```

RESPONSESCHEMA

```
Copied
{
  "latestArtifact": {
    "buildId": "12345",
    "state": "PROCESSED",
    "appInfo": {
      "appId": "com.example.app",
      "name": "Example App",
      "version": "1.2.0",
      "buildNumber": 42,
      "artifactType": "AAB",
      "dateAdded": "2025-01-15T10:30:00+00:00",
      "dateBuilt": "2025-01-15T10:00:00+00:00"
    },
    "gitInfo": {
      "headSha": "abc123def456",
      "baseSha": "789xyz000111",
      "provider": "github",
      "headRepoName": "org/repo",
      "baseRepoName": "org/repo",
      "headRef": "feature-branch",
      "baseRef": "main",
      "prNumber": 42
    },
    "platform": "ANDROID",
    "projectId": "1",
    "projectSlug": "my-project",
    "buildConfiguration": "release",
    "isInstallable": true,
    "installUrl": "https://sentry.io/api/0/projects/org/project/files/installablepreprodartifact/abc123/?response_format=apk",
    "installUrlExpiresAt": "2025-01-15T22:30:00+00:00",
    "downloadCount": 5,
    "releaseNotes": "Bug fixes and performance improvements.",
    "installGroups": [
      "beta-testers"
    ],
    "isCodeSignatureValid": null,
    "profileName": null,
    "codesigningType": null
  },
  "currentArtifact": 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.
