Skip to main content
GET
Get prompt draft

Authorizations

Authorization
string
header
required

Workspace API key. Pass as Authorization: Bearer <key>.

Path Parameters

promptId
string
required

Unique identifier for an entity, between 20 and 80 characters.

Required string length: 20 - 80

Response

Draft retrieved.

A draft version of a prompt with config, messages, tools, and variables.

config
Prompt Config · object
required

Provider and model configuration for a prompt.

messages
Prompt Message · object[]
required

Array of prompt messages.

tools
Prompt Tool · object[]
required

Array of tool definitions available to the model.

variables
object
required

Map of variable names to their definitions.