---
title: "List undeployed commits for a project"
method: GET
path: "/projects/{id}/undeployed_changes"
tags: ["Projects"]
---

# List undeployed commits for a project

`GET /projects/{id}/undeployed_changes`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{id}/undeployed_changes`
- Auth: HTTP basic

Returns the undeployed commits between the last completed deployment in the default branch and the current HEAD. Commit list is capped at 100; when capped, `truncated` is true.

## Path parameters

- `id` string, required

## Response `200`

Success

- CountTruncatedLatestDeployedRevisionObject
  - `count` integer, required
  - `truncated` boolean, required
  - `latest_deployed_revision` string
  - `current_revision` string
  - `last_checked_at` string
  - `check_in_progress` boolean, required
  - `check_fail_message` string
  - `commits` object[]
    - `ref` string
    - `author` string
    - `email` string
    - `timestamp` string
    - `message` string
    - `short_message` string
    - `url` string

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
