---
title: "Get prompts by commits"
method: POST
path: "/v1/private/prompts/retrieve-by-commits"
tags: ["Prompts"]
---

# Get prompts by commits

`POST /v1/private/prompts/retrieve-by-commits`

## Request

- Base URL: `http://localhost:5173/api`
- URL: `http://localhost:5173/api/v1/private/prompts/retrieve-by-commits`
- Auth: none declared

Get prompts by prompt version commits

## Request body

- PromptVersionCommitsRequestPublic
  - `commits` string[], required

## Response `200`

OK

- PromptVersionLinkPublic[]
  - `prompt_version_id` string, uuid
  - `commit` string
  - `prompt_id` string, uuid
  - `prompt_name` string

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) - [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/comet-ml/apis/opik-rest-api/revisions/751fac2ffa9f?raw)
