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

# Retrieve a prompt version

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

Retrieve a specific version of a prompt.

## Path parameters

- `prompt_id` string, required
- `version` integer, required

## Headers

- `Authorization` string, required

## Response `200`

Prompt version details.

- PromptsRetrievePromptVersionResponse200
  - `id` string
  - `prompt_version_id` string
  - `version` integer
  - `description` string, nullable
  - `messages` object[]
  - `thinking` ApiPromptsPromptIdVersionsVersionGetResponsesContentApplicationJsonSchemaThinking
  - `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` ApiPromptsPromptIdVersionsVersionGetResponsesContentApplicationJsonSchemaVariables
  - `fallback_models` string[], nullable
  - `load_balance_models` ApiPromptsPromptIdVersionsVersionGetResponsesContentApplicationJsonSchemaLoadBalanceModelsItems[], nullable
  - `tools` ApiPromptsPromptIdVersionsVersionGetResponsesContentApplicationJsonSchemaToolsItems[], nullable
  - `tool_choice` union
    - string
    - object
  - `response_format` ApiPromptsPromptIdVersionsVersionGetResponsesContentApplicationJsonSchemaResponseFormat
  - `json_schema` ApiPromptsPromptIdVersionsVersionGetResponsesContentApplicationJsonSchemaJsonSchema
  - `is_enforcing_response_format` boolean
  - `readonly` boolean
  - `is_deployed` boolean
  - `edited_by` ApiPromptsPromptIdVersionsVersionGetResponsesContentApplicationJsonSchemaEditedBy
    - `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 version 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)
