Voiceflow bearer token
Create many tests
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/test/batch \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"tests": [
{
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}
]
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/test/batch?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"tests": [
{
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}
]
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/test/batch?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"tests": [
{
"name": "<string>",
"settings": {
"launchEvent": None,
"variableStates": []
}
}
]
},
)
data = response.json()vf test create-many --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"tests": [
{
"id": "<string>",
"name": "<string>",
"settings": {
"launchEvent": "<string>",
"variableStates": []
},
"createdAt": "2026-09-10T00:00:00.000Z",
"updatedAt": "2026-09-10T00:00:00.000Z",
"turnOrder": [
"<string>"
]
}
]
}Adds several tests to the environment in one request, each taking the fields the single-create call takes. The response carries the created tests in the same shape the list call returns.
POST
/v1/stable/test/batch
Create many tests
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/test/batch \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"tests": [
{
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}
]
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/test/batch?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"tests": [
{
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}
]
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/test/batch?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"tests": [
{
"name": "<string>",
"settings": {
"launchEvent": None,
"variableStates": []
}
}
]
},
)
data = response.json()vf test create-many --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"tests": [
{
"id": "<string>",
"name": "<string>",
"settings": {
"launchEvent": "<string>",
"variableStates": []
},
"createdAt": "2026-09-10T00:00:00.000Z",
"updatedAt": "2026-09-10T00:00:00.000Z",
"turnOrder": [
"<string>"
]
}
]
}Authorizations
Query Parameters
Body
Response
201 - application/jsonCreates one test per entry in the request body and returns them all with their assigned IDs. Turns are attached afterwards, and a turn batch targets one test at a time.
Show child attributes
Show child attributes
Show child attributes
Option 1
string
Option 2
PersonaItem — see its attributes above
Was this page helpful?
Thanks for your feedback.