Skip to main content
GET
cURL

Retrieve Prompt Versions

This endpoint retrieves all prompt versions associated with a specific prompt ID.

Required Parameters

Examples

Response

The response includes an array of prompt version objects associated with the specified prompt ID.

Query Parameters

promptId
string<uuid>
required

Response

200 - application/json

List of prompt versions

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