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

---

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