---
title: "List Agent Prompt Versions"
method: GET
path: "/api/ai-agents/{agent_id}/prompt-versions"
tags: ["ai-agents", "ai-agents"]
---

# List Agent Prompt Versions

`GET /api/ai-agents/{agent_id}/prompt-versions`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/{agent_id}/prompt-versions`
- Auth: none declared

## Path parameters

- `agent_id` integer, required

## Query parameters

- `limit` integer
- `before` integer, nullable: Cursor: return versions strictly below this version_number

## Response `200`

Successful Response

- PromptVersionResponse[]
  - `version_number` integer, required
  - `prompt_text` string, required
  - `content_md5` string, required
  - `change_reason` string, nullable, required
  - `change_source` string, nullable, required
  - `changed_by_user_id` integer, nullable, required
  - `created_at` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
