Voiceflow bearer token
curl --request PUT \
--url https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/links \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"links": [
{
"stepID": "<string>",
"port": "<string>",
"toBlockID": "<string>"
}
]
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/links?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"links": [
{
"stepID": "<string>",
"port": "<string>",
"toBlockID": "<string>"
}
]
}),
});
const data = await response.json();import requests
response = requests.put(
'https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/links?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"links": [
{
"stepID": "<string>",
"port": "<string>",
"toBlockID": "<string>"
}
]
},
)
data = response.json()vf workflow link-many --workflow-id <workflowID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"message": "<string>",
"linked": [
{
"stepID": "<string>",
"port": "<string>",
"to": "<string>",
"replaced": "<string>"
}
]
}Points up to 50 ports at blocks in one write. Every link is checked before anything is saved, and they save together; a port that led elsewhere now leads to the new block and keeps its actions.
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/workflow/link-many-ports.md — the Voiceflow documentation page "Link many ports". 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 PUT \
--url https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/links \
--header 'Authorization: Bearer <token>'
--header 'Content-Type: application/json' \
--data '{
"links": [
{
"stepID": "<string>",
"port": "<string>",
"toBlockID": "<string>"
}
]
}'const response = await fetch('https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/links?projectID=<projectID>&environmentAlias=<environmentAlias>', {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"links": [
{
"stepID": "<string>",
"port": "<string>",
"toBlockID": "<string>"
}
]
}),
});
const data = await response.json();import requests
response = requests.put(
'https://realtime-api.voiceflow.com/v1/stable/workflow/<workflowID>/links?projectID=<projectID>&environmentAlias=<environmentAlias>',
headers={'Authorization': 'Bearer <token>'},
json={
"links": [
{
"stepID": "<string>",
"port": "<string>",
"toBlockID": "<string>"
}
]
},
)
data = response.json()vf workflow link-many --workflow-id <workflowID> --project-id <projectID> --environment-alias <environmentAlias> \
< body.json{
"message": "<string>",
"linked": [
{
"stepID": "<string>",
"port": "<string>",
"to": "<string>",
"replaced": "<string>"
}
]
}Authorizations
Query Parameters
Body
1 to 50 ports to link, each once.
Show child attributes
Response
200 - application/jsonReturns a message and, for each port in the order sent, the block it led to before.
Every port in the order you sent them, with the block it led to before.
Show child attributes
Was this page helpful?
Thanks for your feedback.