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

# Get a prompt version

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

## Request

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

## Path parameters

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

## Response `200`

Prompt version details.

- 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
  - `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`: Version not found

## Changes

- **2026-10-21** `c30bcb383ee8`: 23 breaking, 8 info
  - the response property `description` became nullable for the status `200`
  - the response property `fallback_models` became nullable for the status `200`
  - the response property `frequency_penalty` became nullable for the status `200`
  - the response property `json_schema` became nullable for the status `200`
  - …27 more
- **2026-10-02** `b830b79cfd52`: 2 warning, 3 info
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `is_deployed` from the response with the `200` status
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
  - …1 more
- **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 `retrieve-prompt-version` removed and replaced with `prompts_retrievePromptVersion`

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

---

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