---
title: "Api Prepare App Version"
method: POST
path: "/api/apps/{app_id}/versions/{sha}/build"
tags: ["apps"]
---

# Api Prepare App Version

`POST /api/apps/{app_id}/versions/{sha}/build`

## Request

- Base URL: `https://app.getdot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.getdot.ai/api/apps/{app_id}/versions/{sha}/build`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in cookie `Authorization`
  - OAuth 2 (password, token URL `/api/auth/token`)

Get a version ready to be looked at — the page asks this first so a
version that no longer builds is refused before anything on screen changes.
Returns the version with the id of the build that will serve it.

## Path parameters

- `app_id` string, required
- `sha` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getdot/apis/dot-api-2.md) · [All operations](https://skmtc.dev/getdot/apis/dot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/getdot/apis/dot-api-2/revisions/d26fe7163a7f?raw)
