Prompt Version
List Prompt Versions
Returns a list of prompt versions for a specific prompt
GET
Retrieve Prompt Versions
This endpoint retrieves all prompt versions associated with a specific prompt ID.
Required Parameters
Parameter | Type | Description |
---|---|---|
promptId | string (UUID) | The ID of the prompt to retrieve versions for |
Examples
Response
The response includes an array of prompt version objects associated with the specified prompt ID.
Query Parameters
Response
200 - application/json
List of prompt versions
Unique identifier for the prompt version
UUID of the prompt this version belongs to
Title of the prompt version
Maximum length:
256
Configuration settings for the prompt version
Array of variables used in the prompt
Plain text content of the prompt version
Markdown content of the prompt version
Whether this version is promoted
Whether this version is a draft
Messages for chat-type prompts
Creation timestamp
Last update timestamp