---
title: "List Commits"
method: GET
path: "/v1/prompts/{alias}/commits"
tags: ["Prompt"]
---

# List Commits

`GET /v1/prompts/{alias}/commits`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/prompts/{alias}/commits`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/prompts/:alias/commits/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of all the commits associated with a prompt

## Response `200`

- PromptCommitsResponse
  - `success` boolean, required: This is true if the prompt versions were successfully retrieved.
  - `data` object, required
    - `commits` PromptCommit[]
      - `id` string, required: The id of a commit generated by Confident AI, not to be confused with prompt id or commit hash.
      - `hash` string, required: The hash of a commit generated by Confident AI.
      - `message` string, required: The message associated with a commit, not to be confused with a prompt's message.
  - `deprecated` boolean, required: This is true if this endpoint is deprecated.

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
