Voiceflow bearer token
curl --request PATCH \
--url https://realtime-api.voiceflow.com/v1/stable/playbook-path/<pathID> \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": null
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
}
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/playbook-path/<pathID>?projectID=<projectID>&environmentAlias=<environmentAlias>&playbookID=<playbookID>', {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": null
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
}
}),
});
const data = await response.json();import requests
response = requests.patch(
'https://realtime-api.voiceflow.com/v1/stable/playbook-path/<pathID>?projectID=<projectID>&environmentAlias=<environmentAlias>&playbookID=<playbookID>',
headers={'Authorization': 'Bearer <token>'},
json={
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": None
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
}
},
)
data = response.json()vf playbook path update --path-id <pathID> --project-id <projectID> --environment-alias <environmentAlias> --playbook-id <playbookID> \
< body.json{
"path": {
"id": "<string>",
"playbookID": "<string>",
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": "<string>"
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
},
"createdAt": "2026-09-10T00:00:00.000Z",
"updatedAt": "2026-09-10T00:00:00.000Z"
},
"unresolvedReferences": [
{
"path": "<string>",
"token": "<string>",
"reason": "unknown"
}
]
}Update exit path
Changes the name, the exit condition, or both on an exit path. Workflow ports follow the path by ID, so links made on it stay in place.
Paste in your agent
1. Set up Voiceflow by following https://www.voiceflow.com/agents/setup 2. Read https://www.voiceflow.com/docs/api-reference/playbook-path/update-exit-path.md — the Voiceflow documentation page "Update exit path". Use it to help me with this part of Voiceflow and answer my questions. Refer to https://www.voiceflow.com/docs/llms.txt if you need related documentation.
curl --request PATCH \
--url https://realtime-api.voiceflow.com/v1/stable/playbook-path/<pathID> \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": null
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
}
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/playbook-path/<pathID>?projectID=<projectID>&environmentAlias=<environmentAlias>&playbookID=<playbookID>', {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": null
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
}
}),
});
const data = await response.json();import requests
response = requests.patch(
'https://realtime-api.voiceflow.com/v1/stable/playbook-path/<pathID>?projectID=<projectID>&environmentAlias=<environmentAlias>&playbookID=<playbookID>',
headers={'Authorization': 'Bearer <token>'},
json={
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": None
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
}
},
)
data = response.json()vf playbook path update --path-id <pathID> --project-id <projectID> --environment-alias <environmentAlias> --playbook-id <playbookID> \
< body.json{
"path": {
"id": "<string>",
"playbookID": "<string>",
"name": "<string>",
"description": "<string>",
"requiredVariables": [
{
"variableOrEntityID": "<string>",
"description": "<string>"
}
],
"messages": {
"generative": {
"execution": "<StableToolMessageGenerative>",
"failure": "<StableToolMessageGenerative>",
"delay": "<StableToolMessageGenerative>",
"completion": "<StableToolMessageGenerative>"
},
"delayMessageID": "<string>",
"failureMessageID": "<string>",
"executionMessageID": "<string>",
"completionMessageID": "<string>",
"delayMessageSeconds": 0
},
"createdAt": "2026-09-10T00:00:00.000Z",
"updatedAt": "2026-09-10T00:00:00.000Z"
},
"unresolvedReferences": [
{
"path": "<string>",
"token": "<string>",
"reason": "unknown"
}
]
}Authorizations
Query Parameters
Body
Replaces the stored list, in order. Leave it out to keep it; send [] to remove every one.
Replaces the stored messages whole. Send null to remove them; leave it out to keep them. Send only a message ID that nothing else uses: no other step in any workflow, no reprompt, no agent and no playbook. For the same words in a second place, create a new message with that text.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
200 - application/jsonReturns the updated exit path.
Show child attributes
The variables or entities the model must fill before it can leave through this path, in the order the editor shows them.
What the agent says as it leaves through this path, in the shape tool messages take: a message ID per slot, and generative examples. Null when it says nothing.
Show child attributes
References this write kept as literal text instead of binding, each with the reason. The write still succeeded.
Show child attributes
unknown: no variable or entity of that name. secret-not-allowed: the name is a project secret and this field does not accept one. path-on-non-variable: only a variable has fields. resource-id: a bare resource id, not a name. invalid-name: outside the ^\w{1,64}$ name grammar. dangling: the reference rendered as a bare id, because its row is gone or its name is outside the name grammar.
unknown, secret-not-allowed, path-on-non-variable, resource-id, invalid-name, danglingWas this page helpful?
Thanks for your feedback.