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

The name of the variable, referenced within the API tool request.

apiToolID
string
required

The ID of the API tool this variable belongs to.

description
string | null

A description of the variable, used by the agent to determine what value to provide.

Response

201 - application/json

Creates the API tool variable and returns it, including its new ID and the apiToolID of the API tool it now belongs to.

variable
object
required