Skip to main content
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

application/json
name
string
required
color
string
required

The display color of the variable in the Voiceflow editor.

description
string | null

A short description of what the variable stores.

defaultValue
string | null

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