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