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

# Get a prompt

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

## Request

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

Returns the prompt template with its current and live versions.

## Path parameters

- `prompt_id` string, required

## Response `200`

Prompt details.

- object
  - `id` string: The unique prompt identifier.
  - `name` string
  - `description` string, nullable
  - `prompt_slug` string, nullable
  - `tags` object[]
    - `id` string
    - `name` string
    - `color` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `current_version` object, nullable: The prompt's current version, as the full version object that Get a prompt version returns.
    - `version` integer
    - `model` string
    - `updated_at` string, date-time
  - `live_version` object, nullable: The deployed version, as the full version object that Get a prompt version returns. `null` until a version is deployed.
    - `version` integer
    - `model` string
    - `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`: 6 breaking, 12 info
  - the response property `current_version` became nullable for the status `200`
  - the response property `description` became nullable for the status `200`
  - the response property `live_version` became nullable for the status `200`
  - the response property `prompt_slug` became nullable for the status `200`
  - …14 more
- **2026-10-02** `b830b79cfd52`: 3 warning, 3 info
  - removed the optional property `created_at` from the response with the `200` status
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `updated_at` from the response with the `200` status
  - added the non-success response with the status `403`
  - …2 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` removed and replaced with `prompts_retrievePrompt`
- **2026-08-13** `4e064cf81dae`: 29 breaking, 56 warning, 4 info
  - the response property `description` became nullable for the status `200`
  - the response property `current_version` became optional for the status `200`
  - the response property `id` became optional for the status `200`
  - the response property `live_version` became optional for the status `200`
  - …85 more

[Operation history](https://skmtc.dev/keywordsai/apis/respan-api/changes/api/prompts/:prompt_id/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)
