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

# List prompt versions

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

List all versions for a prompt. Results are ordered newest first.

## Path parameters

- `prompt_id` string, required

## Query parameters

- `page` integer
- `page_size` integer

## Headers

- `Authorization` string, required

## Response `200`

Paginated list of prompt versions.

- PromptsListPromptVersionsResponse200
  - `count` integer — Total number of matching versions.
  - `next` string, nullable — Next page URL.
  - `previous` string, nullable — Previous page URL.
  - `results` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItems[]
    - `id` string
    - `prompt_version_id` string
    - `version` integer
    - `description` string, nullable
    - `messages` object[]
    - `thinking` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItemsThinking
    - `model` string
    - `stream` boolean
    - `temperature` number, double, nullable
    - `max_tokens` integer, nullable
    - `top_p` number, double, nullable
    - `frequency_penalty` number, double, nullable
    - `presence_penalty` number, double, nullable
    - `reasoning_effort` string, nullable
    - `verbosity` string, nullable
    - `seed` integer, nullable
    - `variables` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItemsVariables
    - `fallback_models` string[], nullable
    - `load_balance_models` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItemsLoadBalanceModelsItems[], nullable
    - `tools` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItemsToolsItems[], nullable
    - `tool_choice` union
      - string
      - object
    - `response_format` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItemsResponseFormat
    - `json_schema` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItemsJsonSchema
    - `is_enforcing_response_format` boolean
    - `readonly` boolean
    - `is_deployed` boolean
    - `edited_by` ApiPromptsPromptIdVersionsGetResponsesContentApplicationJsonSchemaResultsItemsEditedBy
      - `id` integer
      - `email` string
      - `first_name` string
      - `last_name` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized - Missing/invalid authentication
- `404` — Prompt not found

## Changes

> 6 revisions in range; 2 could not be searched.

- **2026-08-13** `4e064cf81dae` — 24 breaking, 12 warning, 6 info
  - for the `query` request parameter `page`, default value `1` was added
  - for the `query` request parameter `page_size`, default value `200` was added
  - the response property `results/items/description` became nullable for the status `200`
  - the response property `results/items/thinking/oneOf[subschema #2]/` became nullable for the status `200`
  - …38 more
- **2026-07-31** `c26d550029f8` — 8 breaking, 32 info
  - for the `query` request parameter `page`, default value `1` was removed
  - for the `query` request parameter `page_size`, default value `200` was removed
  - added `#/components/schemas/PromptThinkingConfig` to the `results/items/thinking` response property `oneOf` list for the response status `200`
  - added `#/components/schemas/PromptToolChoice` to the `results/items/tool_choice` response property `oneOf` list for the response status `200`
  - …36 more

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

---

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