Voiceflow bearer token
Create test
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/test \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/test?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/test?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"name": "<string>",
"settings": {
"launchEvent": None,
"variableStates": []
}
},
)
data = response.json()vf test create --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"test": {
"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 a test to the environment, a scripted conversation replayed against the agent. The response carries the ID that later calls address it by.
POST
/v1/stable/test
Create test
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/test \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/test?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "<string>",
"settings": {
"launchEvent": null,
"variableStates": []
}
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/test?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"name": "<string>",
"settings": {
"launchEvent": None,
"variableStates": []
}
},
)
data = response.json()vf test create --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"test": {
"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 the test and returns it with its assigned id. A test holds no conversation of its own, so use that id to create the turns that make it up.
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.