Workflow Edges
List Edges
Retrieve every edge (transition) in a workflow so you can rebuild the workflow graph alongside its nodes.
GET
List workflow edges
Returns every edge in the given workflow. Each edge encodes a directed transition between two nodes:
from_node_id is the source, to_node_id is the destination, and the optional label describes the condition that triggers the transition (for example COMPLETED, NO_ANSWER, VOICEMAIL). Combine with List Nodes to reconstruct the full workflow graph.
When to use this
- Visual editors: fetch the edge set so the canvas can draw transitions and conditional branches.
- Workflow exports: produce a portable JSON snapshot of the workflow structure for backups, migrations, or version control.
- Lint and audit tooling: verify every non-terminal node has at least one outgoing edge and that conditional nodes have a labelled edge for each expected outcome.
- Path-coverage reports: walk edges to compute which sequences of nodes leads can take and surface unreachable branches.
Edge labels
Edges may be unlabelled (the default transition between sequential steps) or labelled with a condition that ties them to an outcome of the source node. Labels are free-form strings; the values your workflow uses depend on the node types in play. Common labels include outcomes from a voice call node (COMPLETED, NO_ANSWER, VOICEMAIL, FAILED) and branches of a conditional node.
Path parameters
| Parameter | Description |
|---|---|
id | The workflow ID, for example wfl_m3v7zb9rk2px. |
Errors
404 Not Foundis returned when the workflow does not exist.
Request
Response
Related endpoints
- List Nodes: fetch the workflow’s nodes.
- Create Edge: add a new transition.
- Delete Edge: remove a transition without removing its nodes.
List workflow edges