---
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`

## Request

- Base URL: `https://api.pantheon.io`
- URL: `https://api.pantheon.io/v0/sites/{site_id}/upstream-updates`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pantheon/apis/pantheon-public-api-service/docs/v0/sites/:site_id/upstream-updates/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/pantheon/apis/pantheon-public-api-service.md) - [All operations](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/revisions/5d158d59f4c3?raw)
