---
title: "List Upstream Updates"
method: GET
path: "/v0/sites/{site_id}/upstream-updates"
tags: ["sites"]
---

# List Upstream Updates

`GET /v0/sites/{site_id}/upstream-updates`

Lists available upstream update commits for a site.
Returns commits that are available from the upstream but not yet applied to the site.

## Path parameters

- `site_id` string, required

## Query parameters

- `base_branch` string

## Response `200`

- UpstreamUpdatesList
  - `behind` integer, required — Number of commits behind the upstream
  - `commits` UpstreamCommit[], required — List of upstream commits available for update
    - `author` string, required — Commit author
    - `datetime` string, required — Commit timestamp
    - `hash` string, required — Commit SHA hash
    - `message` string, required — Commit message
  - `environments` object — Per-environment upstream status
  - `has_code` boolean, required — Whether the site has code (vs empty repository)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/pantheon/apis/pantheon-public-api-service.md) · [All operations](https://skmtc.net/pantheon/apis/pantheon-public-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pantheon/pantheon-public-api-service/revisions/94758829689e/schema)
