---
title: "List prompt versions"
method: GET
path: "/api/prompts/{prompt_id}/versions/"
tags: ["Prompts"]
---

# List prompt versions

`GET /api/prompts/{prompt_id}/versions/`

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/prompts/{prompt_id}/versions/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Results are ordered newest first.

## Path parameters

- `prompt_id` string, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

Paginated list of prompt versions.

- object
  - `count` integer: Number of results on this page, not the total. Request pages until `next` is null to get every result.
  - `next` string, nullable: Next page URL.
  - `previous` string, nullable: Previous page URL.
  - `results` object[]
    - `id` string
    - `prompt_version_id` string
    - `version` integer
    - `description` string, nullable
    - `messages` object[]
    - `thinking` object, nullable
    - `model` string
    - `stream` boolean
    - `temperature` number, nullable
    - `max_tokens` integer, nullable
    - `top_p` number, nullable
    - `frequency_penalty` number, nullable
    - `presence_penalty` number, nullable
    - `reasoning_effort` string, nullable
    - `verbosity` string, nullable
    - `seed` integer, nullable
    - `variables` object
    - `fallback_models` string[], nullable
    - `load_balance_models` object[], nullable
    - `tools` object[], nullable
    - `tool_choice` union
      - string, nullable
      - object
    - `response_format` object, nullable
    - `json_schema` object, nullable
    - `is_enforcing_response_format` boolean
    - `readonly` boolean
    - `is_deployed` boolean
    - `edited_by` object
      - `id` integer
      - `email` string
      - `first_name` string
      - `last_name` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `403`: The API key is missing, invalid or expired.
- `404`: Prompt not found

## Changes

- **2026-10-21** `c30bcb383ee8`: 25 breaking, 8 info
  - the response property `next` became nullable for the status `200`
  - the response property `previous` became nullable for the status `200`
  - the response property `results/items/description` became nullable for the status `200`
  - the response property `results/items/fallback_models` became nullable for the status `200`
  - …29 more
- **2026-10-02** `b830b79cfd52`: 1 warning, 3 info
  - removed the optional property `error` from the response with the `404` status
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
  - added the required property `detail` to the response with the `404` status
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `list-prompt-versions` removed and replaced with `prompts_listPromptVersions`
- **2026-08-22** `b18c72975097`: 1 warning
  - for the `query` request parameter `page_size`, the max was set to `500.00`

[Operation history](https://skmtc.dev/keywordsai/apis/respan-api/changes/api/prompts/:prompt_id/versions/get.md)

---

[API](https://skmtc.dev/keywordsai/apis/respan-api.md) - [All operations](https://skmtc.dev/keywordsai/apis/respan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/keywordsai/apis/respan-api/revisions/900841387635?raw)
