Request
alias string Required
The unique alias of the prompt.
text string Optional
The text content of the prompt. Supply this only if you are creating a text-based prompt.
messages list of objects Optional
The list of messages that make up the prompt. Supply this only if you are creating a list-based prompt.
interpolationType enum Optional Defaults to FSTRING
The type of interpolation format used in the prompt to insert dynamic variables.
Allowed values: MUSTACHE MUSTACHE_WITH_SPACE FSTRING DOLLAR_BRACKETS
modelSettings object Optional
This is the model settings for the prompt.
outputType enum Optional Defaults to TEXT
The type of output expected from the prompt.
Allowed values: TEXT JSON SCHEMA
outputSchema object Optional
This is the output schema definition when outputType is SCHEMA.
tools list of objects Optional
branch string Optional
The name of the branch you want to push the new commit to. Defaults to "main" if not specified.
Response
success boolean
This is true if the prompt was successfully created.
data object
This maps to the prompt version id.
link string
This is the URL to redirect to after the prompt is created.
deprecated boolean
This is true if this endpoint is deprecated.