---
title: "Get a Prompt"
method: GET
path: "/v1/prompts/{id}"
tags: ["Prompts"]
---

# Get a Prompt

`GET /v1/prompts/{id}`

Returns details of a specific prompt container by its unique UUID or unique slug. Optionally retrieves version or tag details if requested via query parameters.

## Path parameters

- `id` string, required

## Query parameters

- `version` string
- `tag` string

## Response `200`

Prompt details

- object
  - `prompt` Prompt, required
    - `id` string, uuid, required — Unique identifier.
    - `project_id` string, uuid, required — Unique identifier of the project the prompt belongs to.
    - `slug` string, required — Unique slug within the project.
    - `name` string, required — Name of the prompt container.
    - `description` string, required — Brief summary explaining the prompt purpose.
    - `status` 'active' | 'archived', required — Current status of the prompt container (active, archived).
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `version` PromptVersion
    - `id` string, uuid, required — Unique version identifier.
    - `prompt_id` string, uuid, required — Reference to parent Prompt ID.
    - `version` integer, required — Incrementing sequence number of the version.
    - `template` string, required — The template syntax code with Go template parameters.
    - `status` 'draft' | 'stable' | 'live' | 'archived', required — Active lifecycle status of this template version.
    - `model` string, nullable, required — Optional `provider/model` identifier intended to execute this prompt version.
    - `model_params` object, nullable, required — Optional provider-specific model parameters. Nested values are supported.
    - `created_at` string, date-time, required
    - `published_at` string, date-time, nullable, required — Timestamp when status was set to live. Null if draft.
    - `tags` string[], required — List of tag strings attached to this version.

## Other responses

- `400` — Invalid UUID format
- `401` — Unauthorized
- `404` — Prompt not found
- `500` — Internal error

---

[API](https://skmtc.net/px0-ai/apis/px0-api.md) · [All operations](https://skmtc.net/px0-ai/apis/px0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/px0-ai/px0-api/revisions/3ed72443989d/schema)
