Create variable
POST
Create variable

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
required
color
string
required

The display color of the variable in the Voiceflow editor.

description
string

A short description of what the variable stores.

defaultValue
string

The initial value of the variable at the start of a conversation.

Response

201 - application/json

Returns the newly created variable in full, including the ID assigned to it and its creation timestamps.

variable
object
required

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