Create prompt
POST
Create prompt

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Query Parameters

projectID
string
required

The ID of the project to operate on.

environmentAlias
string
required

The alias of the environment to operate on (e.g. main).

Body

name
string

Defaults to "Untitled prompt", as the editor names one.

system
object
required

Plain text; markdown is not interpreted. {variable_name} inserts a variable or entity, {variable_name.path} a field of a variable. Escape a literal { or \ with a backslash. A name matching neither is stored as literal text and reported in unresolvedReferences; secrets are not available here.

settings
object

Response

201 - application/json

Returns the new prompt with its ID, name, system text, and settings, and unresolvedReferences for any variable or reference in the system text that did not resolve.

prompt
object
required
unresolvedReferences
object[]

References this write kept as literal text instead of binding, each with the reason. The write still succeeded.

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close the search.