Voiceflow bearer token
curl --request PATCH \
--url https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/step/<stepID>/branch/<branchID> \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"label": "<string>",
"matchAll": true,
"assertions": [
{
"id": "<string>",
"lhs": {
"variableID": "<string>",
"path": "<string>"
},
"operation": "<ConditionOperation>",
"rhs": "<VariableReferenceString>"
}
],
"kind": "condition"
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/step/<stepID>/branch/<branchID>?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"label": "<string>",
"matchAll": true,
"assertions": [
{
"id": "<string>",
"lhs": {
"variableID": "<string>",
"path": "<string>"
},
"operation": "<ConditionOperation>",
"rhs": "<VariableReferenceString>"
}
],
"kind": "condition"
}),
});
const data = await response.json();import requests
response = requests.patch(
'https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/step/<stepID>/branch/<branchID>?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"label": "<string>",
"matchAll": True,
"assertions": [
{
"id": "<string>",
"lhs": {
"variableID": "<string>",
"path": "<string>"
},
"operation": "<ConditionOperation>",
"rhs": "<VariableReferenceString>"
}
],
"kind": "condition"
},
)
data = response.json()vf workflow update-branch --workflow-id <workflowID> --step-id <stepID> --branch-id <branchID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"message": "<string>",
"branchID": "<string>",
"step": {
"id": "<string>",
"kind": "message",
"exitClass": "sequential",
"content": {
"responseType": "message",
"messageID": "<string>",
"waitForUserResponse": true
},
"fallsThroughTo": "<string>",
"suppressedPorts": [
"<string>"
],
"links": [
{
"port": "<string>",
"label": "<string>",
"to": "<string>",
"actions": [
"<StableWorkflowPortAction>"
],
"overridden": true,
"effectiveTo": "<string>"
}
],
"reconciledPorts": {
"added": [
"<string>"
],
"removed": [
"<string>"
]
},
"warnings": [
{
"code": "<StableWorkflowDiagnosticCode>",
"detail": "<string>"
}
]
},
"unresolvedReferences": [
{
"path": "<string>",
"token": "<string>",
"reason": "unknown"
}
]
}Edits a branch’s label, assertions, URL or exit path details. The branch keeps its link; use the link operation to repoint it. `assertions` replaces the branch’s whole list of checks.
curl --request PATCH \
--url https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/step/<stepID>/branch/<branchID> \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"label": "<string>",
"matchAll": true,
"assertions": [
{
"id": "<string>",
"lhs": {
"variableID": "<string>",
"path": "<string>"
},
"operation": "<ConditionOperation>",
"rhs": "<VariableReferenceString>"
}
],
"kind": "condition"
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/step/<stepID>/branch/<branchID>?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"label": "<string>",
"matchAll": true,
"assertions": [
{
"id": "<string>",
"lhs": {
"variableID": "<string>",
"path": "<string>"
},
"operation": "<ConditionOperation>",
"rhs": "<VariableReferenceString>"
}
],
"kind": "condition"
}),
});
const data = await response.json();import requests
response = requests.patch(
'https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/step/<stepID>/branch/<branchID>?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"label": "<string>",
"matchAll": True,
"assertions": [
{
"id": "<string>",
"lhs": {
"variableID": "<string>",
"path": "<string>"
},
"operation": "<ConditionOperation>",
"rhs": "<VariableReferenceString>"
}
],
"kind": "condition"
},
)
data = response.json()vf workflow update-branch --workflow-id <workflowID> --step-id <stepID> --branch-id <branchID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"message": "<string>",
"branchID": "<string>",
"step": {
"id": "<string>",
"kind": "message",
"exitClass": "sequential",
"content": {
"responseType": "message",
"messageID": "<string>",
"waitForUserResponse": true
},
"fallsThroughTo": "<string>",
"suppressedPorts": [
"<string>"
],
"links": [
{
"port": "<string>",
"label": "<string>",
"to": "<string>",
"actions": [
"<StableWorkflowPortAction>"
],
"overridden": true,
"effectiveTo": "<string>"
}
],
"reconciledPorts": {
"added": [
"<string>"
],
"removed": [
"<string>"
]
},
"warnings": [
{
"code": "<StableWorkflowDiagnosticCode>",
"detail": "<string>"
}
]
},
"unresolvedReferences": [
{
"path": "<string>",
"token": "<string>",
"reason": "unknown"
}
]
}Authorizations
Query Parameters
Body
Show child attributes
Show child attributes
Replaces the branch's whole list of checks. Send every check to keep, with its id, and new checks without an id.
Show child attributes
Plain text; markdown is not interpreted. {variable_name} inserts a variable or entity, {variable_name.path} a field of a variable. Escape a literal { or \ with a backslash. A name matching neither is stored as literal text and reported in unresolvedReferences; secrets are not available here.
Response
200 - application/jsonReturns what was written, the branch ID, and the step with the branch's new content.
Show child attributes
What the step does. api, function, integration and mcp are Tool steps. playbook and operator are Agent steps. goToBlock jumps to a block or a workflow start and ends the path. callForward transfers a phone call and ends the path. legacy is a step these operations show but cannot change.
message, end, set, workflow, listen, condition, buttons, card, carousel, code, api, function, integration, mcp, playbook, operator, crew, handoff, legacy, goToBlock, callForwardHow the step leaves. sequential: it continues to the step below it, or through next when it is last. branch: it leaves through one of its links, so it must be last. async-branch: a Card or Carousel, whose linked buttons run from any position. terminal: it ends the path.
sequential, branch, async-branch, terminalThe step's settings, shaped by its kind. A step these operations cannot show reads as readOnly.
Show child attributes
Show child attributes
responseType, messageID, waitForUserResponseresponseType, promptID, waitForUserResponseShow child attributes
responseType, messageID, responseEnabledresponseType, promptID, responseEnabledShow child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Plain text; markdown is not interpreted. {variable_name} inserts a variable or entity, {variable_name.path} a field of a variable. Escape a literal { or \ with a backslash. A name matching neither is stored as literal text and reported in unresolvedReferences; secrets are not available here.
Show child attributes
The port actions this exit runs, in order, before it reaches to.
Show child attributes
What the step does. api, function, integration and mcp are Tool steps. playbook and operator are Agent steps. goToBlock jumps to a block or a workflow start and ends the path. callForward transfers a phone call and ends the path. legacy is a step these operations show but cannot change.
message, end, set, workflow, listen, condition, buttons, card, carousel, code, api, function, integration, mcp, playbook, operator, crew, handoff, legacy, goToBlock, callForwardThe step's settings, shaped by its kind. A step these operations cannot show reads as readOnly.
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.