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

# Retrieve a prompt

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

Retrieve a prompt template by ID, including its current and live versions.

## Path parameters

- `prompt_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

Prompt details.

- PromptsRetrievePromptResponse200
  - `id` string — The unique prompt identifier.
  - `name` string
  - `description` string, nullable
  - `prompt_slug` string, nullable
  - `tags` ApiPromptsPromptIdGetResponsesContentApplicationJsonSchemaTagsItems[]
    - `id` string
    - `name` string
    - `color` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `current_version` ApiPromptsPromptIdGetResponsesContentApplicationJsonSchemaCurrentVersion
    - `version` integer
    - `model` string
    - `updated_at` string, date-time
  - `live_version` ApiPromptsPromptIdGetResponsesContentApplicationJsonSchemaLiveVersion
    - `version` integer
    - `model` string
    - `updated_at` string, date-time
  - `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)
