---
title: "List Prompt Versions"
method: GET
path: "/v1/agents/{agent_id}/prompts/versions"
tags: ["Prompts"]
---

# List Prompt Versions

`GET /v1/agents/{agent_id}/prompts/versions`

list prompt versions with optional filters (label, version).

## Path parameters

- `agent_id` integer, required

## Query parameters

- `label` string, nullable
- `version` integer, nullable
- `limit` integer

## Headers

- `X-Organization-Id` string
- `X-API-Key` string, required

## Response `200`

Successful Response

- PromptResponse[]
  - `id` string, uuid, nullable — the id of the prompt
  - `prompt_text` string, required — the prompt content
  - `commit_message` string, nullable
  - `labels` string[], nullable — labels associated with the prompt
  - `metadata` object, nullable — arbitrary JSON metadata
  - `version` integer, required — the version number of the prompt
  - `agent_id` integer, required — id of the agent that owns this prompt

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-03** `aa501502e1fc` — 1 info
  - added the new optional `header` request parameter `X-Organization-Id`

[Change history](https://skmtc.dev/getbluejay/apis/bluejay-api/changes/v1/agents/:agent_id/prompts/versions/get.md)

---

[API](https://skmtc.dev/getbluejay/apis/bluejay-api.md) · [All operations](https://skmtc.dev/getbluejay/apis/bluejay-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getbluejay/bluejay-api/revisions/aa501502e1fc/schema)
