v27

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-2193427579.9 KB
Prompts

Get a prompt.

Get a prompt by its identifier and optional version.

get/v1/prompts/{prompt_id}

Path parameters

prompt_idstring required

The identifier of the prompt to get.

The identifier of the prompt to get.

Query parameters

versioninteger nullable

The version of the prompt to get (defaults to latest).

The version of the prompt to get (defaults to latest).

Response

A Prompt resource.

promptstring nullable

The system prompt with variable placeholders

versioninteger required

Version (integer starting at 1, incremented on save)

prompt_idstring required

Unique identifier in format 'pmpt_<48-digit-hash>'

variablesstring[]

List of variable names that can be used in the prompt template

is_defaultboolean

Boolean indicating whether this version is the default version