---
title: "List an app's deployments"
method: GET
path: "/api/v1/apps/{appId}/deployments"
tags: ["Apps"]
---

# List an app's deployments

`GET /api/v1/apps/{appId}/deployments`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/apps/{appId}/deployments`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns the app's recent deployments, newest first, read live from the hosting provider: every deployment, including ones started by a git push, with state, branch, commit, and times. Falls back to the deployments Khotan recorded when the provider can't be read.

## Path parameters

- `appId` string, required

## Response `200`

The app's recent deployments.

- object
  - `deployments` object[], required
    - `id` string, required
    - `status` string, required
    - `target` string, nullable, required
    - `url` string, nullable, required
    - `gitBranch` string, nullable, required
    - `gitCommitSha` string, nullable, required
    - `gitCommitMessage` string, nullable, required
    - `createdAt` string, required
    - `readyAt` string, nullable, required
    - `failedAt` string, nullable, required

## Other responses

- `401`: Authentication is missing or invalid.
- `404`: The resource was not found.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
