Skip to main content
A prompt is reusable message text you can attach to a model or apply globally. Prompts belong to a workspace, so pass workspace_id on reads and writes. Reads need prompts:read and writes need prompts:write.

List prompts

Get a prompt

Create a prompt

string
required
The workspace the prompt belongs to.
string
required
A name for the prompt.
string
required
The prompt text.
string
One of SYSTEM, USER, or ASSISTANT.
string | null
Attach the prompt to a specific model, or leave it null.
boolean
Apply the prompt across the workspace.
boolean
Whether the prompt is active.
integer
The order the prompt is applied in.
string | null
One of PRODUCTION, STAGING, EVALUATION, EXPERIMENTS, or null.

Update a prompt

Accepts any create field. Send workspace_id in the body.

Delete a prompt