Prompts
Create Prompt
Create a new prompt that you can use across your AI applications. Build prompts from one or more components, and use handlebars-style variables like {{userName}} for personalization.
Safe by Default: Creating a prompt creates a new version but doesn't activate it. Your production prompts stay unchanged until you explicitly activate the new version (via the UI or when you reference it in the Messages API). This lets you test and prepare new prompts without risk.
Versioning: Every prompt is immutable and versioned with fingerprinting, so you can safely iterate and track changes over time.
post/prompts
Request body
Response
Prompt created successfully