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

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.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
