Voiceflow bearer token
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/block/<blockID>/split \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"atStepID": "<string>",
"name": "<string>",
"expectedSteps": [
"<string>"
],
"acknowledgeRewire": true
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/block/<blockID>/split?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"atStepID": "<string>",
"name": "<string>",
"expectedSteps": [
"<string>"
],
"acknowledgeRewire": true
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/block/<blockID>/split?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"atStepID": "<string>",
"name": "<string>",
"expectedSteps": [
"<string>"
],
"acknowledgeRewire": True
},
)
data = response.json()vf workflow split-block --workflow-id <workflowID> --block-id <blockID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"head": {
"id": "<string>",
"name": "<string>",
"inboundFrom": [
{
"stepID": "<string>",
"port": "<string>"
}
],
"steps": [
{
"id": "<string>",
"kind": "<StableWorkflowStepKind>",
"exitClass": "<StableWorkflowExitClass>",
"content": "<StableWorkflowStepContent>",
"fallsThroughTo": "<string>",
"suppressedPorts": [
"<string>"
],
"links": [
"<StableWorkflowLink>"
],
"reconciledPorts": "<StableWorkflowReconciledPorts>",
"warnings": [
"<StableWorkflowDiagnostic>"
]
}
]
},
"tail": {
"id": "<string>",
"name": "<string>",
"inboundFrom": [
{
"stepID": "<string>",
"port": "<string>"
}
],
"steps": [
{
"id": "<string>",
"kind": "<StableWorkflowStepKind>",
"exitClass": "<StableWorkflowExitClass>",
"content": "<StableWorkflowStepContent>",
"fallsThroughTo": "<string>",
"suppressedPorts": [
"<string>"
],
"links": [
"<StableWorkflowLink>"
],
"reconciledPorts": "<StableWorkflowReconciledPorts>",
"warnings": [
"<StableWorkflowDiagnostic>"
]
}
]
},
"clearedLinks": [
{
"stepID": "<string>",
"port": "<string>",
"to": "<string>",
"actions": [
"<string>"
]
}
]
}Divides one block into two at a step you choose, so a link can enter at that step or a step can branch. Send `expectedSteps` as your last read returned them; if the block changed since then, the call returns 409 and writes nothing.
curl --request POST \
--url https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/block/<blockID>/split \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"atStepID": "<string>",
"name": "<string>",
"expectedSteps": [
"<string>"
],
"acknowledgeRewire": true
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/block/<blockID>/split?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"atStepID": "<string>",
"name": "<string>",
"expectedSteps": [
"<string>"
],
"acknowledgeRewire": true
}),
});
const data = await response.json();import requests
response = requests.post(
'https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/block/<blockID>/split?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"atStepID": "<string>",
"name": "<string>",
"expectedSteps": [
"<string>"
],
"acknowledgeRewire": True
},
)
data = response.json()vf workflow split-block --workflow-id <workflowID> --block-id <blockID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"head": {
"id": "<string>",
"name": "<string>",
"inboundFrom": [
{
"stepID": "<string>",
"port": "<string>"
}
],
"steps": [
{
"id": "<string>",
"kind": "<StableWorkflowStepKind>",
"exitClass": "<StableWorkflowExitClass>",
"content": "<StableWorkflowStepContent>",
"fallsThroughTo": "<string>",
"suppressedPorts": [
"<string>"
],
"links": [
"<StableWorkflowLink>"
],
"reconciledPorts": "<StableWorkflowReconciledPorts>",
"warnings": [
"<StableWorkflowDiagnostic>"
]
}
]
},
"tail": {
"id": "<string>",
"name": "<string>",
"inboundFrom": [
{
"stepID": "<string>",
"port": "<string>"
}
],
"steps": [
{
"id": "<string>",
"kind": "<StableWorkflowStepKind>",
"exitClass": "<StableWorkflowExitClass>",
"content": "<StableWorkflowStepContent>",
"fallsThroughTo": "<string>",
"suppressedPorts": [
"<string>"
],
"links": [
"<StableWorkflowLink>"
],
"reconciledPorts": "<StableWorkflowReconciledPorts>",
"warnings": [
"<StableWorkflowDiagnostic>"
]
}
]
},
"clearedLinks": [
{
"stepID": "<string>",
"port": "<string>",
"to": "<string>",
"actions": [
"<string>"
]
}
]
}Authorizations
Query Parameters
Body
Response
201 - application/jsonReturns both blocks, head for the part that keeps the original ID and tail for the new one. Link a port to the tail block next.
Show child attributes
The steps in the order they run.
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.
Actions on the next exit of the head’s new last step that were deleted, because next now links to the new block. Its hidden links are kept and now run.
Show child attributes
Was this page helpful?
Thanks for your feedback.