---
title: "Api Get App Version Source"
method: GET
path: "/api/apps/{app_id}/versions/{sha}/source"
tags: ["apps"]
---

# Api Get App Version Source

`GET /api/apps/{app_id}/versions/{sha}/source`

## 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}/source`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in cookie `Authorization`
  - OAuth 2 (password, token URL `/api/auth/token`)

The app's source at one listed version (read-only), for everyone who can
view the app — the same people who may read the live source and who see the
version rendered. Only shas from `/versions` resolve, so no caller can read an
arbitrary commit through an app it may view.

## 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)
