---
title: "Get Commits"
method: GET
path: "/v0/sites/{site_id}/environments/{env_id}/commits"
tags: ["sites"]
---

# Get Commits

`GET /v0/sites/{site_id}/environments/{env_id}/commits`

Retrieves Git commit history for an environment.

## Path parameters

- `site_id` string, required
- `env_id` string, required

## Response `200`

- Commit[] — CommitsResponse represents a list of commits
  - `author` string, required — Commit author name
  - `datetime` string, required — Commit timestamp
  - `hash` string, required — Git commit SHA
  - `labels` string[], required — Environment labels where this commit exists
  - `message` string, required — Commit message

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `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)
