v51

OpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-01308532588.1 KB
Prompts

Create prompt

Create prompt

post/v1/private/prompts

Request body

idstring uuid
namestring required
project_idstring uuid

Project ID. Takes precedence over project_name when both are provided.

project_namestring

For project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the prompt is created at workspace level.

descriptionstring
templatestring
metadataJsonNodeWrite
change_descriptionstring
type'mustache' | 'jinja2' | 'python'
template_structure'text' | 'chat'

Template structure type: 'text' or 'chat'. Immutable after creation.

tagsstring[]

Response

Created