Skip to main content
GET
cURL

Retrieve a Prompt Version

This endpoint retrieves a specific prompt version by its ID.

URL Parameters

Examples

Response

The response includes the requested prompt version object with all its details.

Path Parameters

id
string
required

Response

200 - application/json

Prompt version details

id
string
required

Unique identifier for the prompt version

promptId
string<uuid>
required

UUID of the prompt this version belongs to

title
string
required

Title of the prompt version

Maximum string length: 256
configuration
object
required

Configuration settings for the prompt version

variables
object[]
required

Array of variables used in the prompt

content
string | null

Plain text content of the prompt version

markdownContent
string | null

Markdown content of the prompt version

promoted
boolean | null

Whether this version is promoted

draft
boolean | null

Whether this version is a draft

messages
object

Messages for chat-type prompts

createdAt
string<date-time>

Creation timestamp

updatedAt
string<date-time>

Last update timestamp