Voiceflow bearer token
Create many variables
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/variable/batch \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"variables": [
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"defaultValue": "<string>"
}
]
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/variable/batch?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"variables": [
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"defaultValue": "<string>"
}
]
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/variable/batch?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"variables": [
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"defaultValue": "<string>"
}
]
},
)
data = response.json()vf variable create-many --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"variables": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"isSystem": true,
"createdAt": "2026-09-10T00:00:00.000Z",
"updatedAt": "2026-09-10T00:00:00.000Z",
"description": "<string>",
"defaultValue": "<string>"
}
]
}Adds several variables to the project in one request, each taking the fields the single-create call takes. The response carries the created variables in the same shape the list call returns.
POST
/v1/stable/variable/batch
Create many variables
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/variable/batch \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"variables": [
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"defaultValue": "<string>"
}
]
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/variable/batch?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"variables": [
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"defaultValue": "<string>"
}
]
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/variable/batch?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"variables": [
{
"name": "<string>",
"color": "<string>",
"description": "<string>",
"defaultValue": "<string>"
}
]
},
)
data = response.json()vf variable create-many --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"variables": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"isSystem": true,
"createdAt": "2026-09-10T00:00:00.000Z",
"updatedAt": "2026-09-10T00:00:00.000Z",
"description": "<string>",
"defaultValue": "<string>"
}
]
}Authorizations
Query Parameters
Body
Response
201 - application/jsonReturns the variables the request created, as an array, each carrying the ID assigned to it.
Show child attributes
Was this page helpful?
Thanks for your feedback.