curl --request POST \
--url https://realtime-api.voiceflow.com/v1alpha1/project/{projectID}/environment \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"name": "<string>",
"alias": "<string>",
"cloneFromEnvironmentID": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"alias": "<string>",
"isMain": true,
"releases": [
{
"name": "<string>",
"backupID": 123,
"createdAt": "<string>",
"versionID": "<string>",
"description": "<string>",
"autogenerated": true,
"createdByUserID": 123
}
],
"createdAt": "<string>",
"draftVersionID": "<string>",
"createdByUserID": 123,
"trafficPercentage": 50,
"nextReleaseNumber": 123,
"publishedVersionID": "<string>",
"draftVersionIDsHistory": [
"<string>"
]
}
}Create a new environment by cloning another environment. When alias is omitted, one is generated from name. When cloneFromEnvironmentID is omitted, the assistant’s main environment is used.
curl --request POST \
--url https://realtime-api.voiceflow.com/v1alpha1/project/{projectID}/environment \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"name": "<string>",
"alias": "<string>",
"cloneFromEnvironmentID": "<string>"
}
'{
"data": {
"id": "<string>",
"name": "<string>",
"alias": "<string>",
"isMain": true,
"releases": [
{
"name": "<string>",
"backupID": 123,
"createdAt": "<string>",
"versionID": "<string>",
"description": "<string>",
"autogenerated": true,
"createdByUserID": 123
}
],
"createdAt": "<string>",
"draftVersionID": "<string>",
"createdByUserID": 123,
"trafficPercentage": 50,
"nextReleaseNumber": 123,
"publishedVersionID": "<string>",
"draftVersionIDsHistory": [
"<string>"
]
}
}Documentation Index
Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Voiceflow API key
ID of the project that owns the environments.
The newly created environment.
Hide child attributes
Hide child attributes
0 < x < 100Was this page helpful?