Workflows
Retrieve workflow definition
Get the editor-oriented workflow payload for a specific workflow.
This endpoint returns everything needed to load the canvas:
- Base workflow metadata
definition.nodesbuilt fromflow_stepsdefinition.edgesbuilt fromflow_edges
Response details:
definition.nodes[].idis the workflow step identifier, not the database IDdefinition.edges[].idis the persisted edge UUIDdefinition.nodes[].data.node_typeis the canonical backend node typedefinition.nodes[].data.configchanges shape by node type- Config fields are returned in snake_case
- Function and call-workflow references are returned as IDs in the Platform API; the Kapso CLI can export them as slugs for local source repos
Use this endpoint when building or syncing a visual workflow editor, exporting a workflow graph, or cloning an existing workflow definition.
GET
Retrieve workflow definition
Authorizations
Path Parameters
Workflow identifier
Response
Workflow definition retrieved successfully
Single workflow response including the canvas definition and editor metadata
Expanded workflow payload returned by GET /workflows/{workflow_id}/definition.
This is the editor-oriented response: it contains the workflow metadata plus the full canvas graph.
Previous
Get workflow variablesRetrieve all variables available in a workflow, including both fixed system variables and variables discovered from execution history.
Returns two categories of variables:
- **Fixed variables**: Built-in system and context variables always available (flow_id, started_at, channel, phone_number, etc.)
- **Discovered variables**: User-defined variables observed during workflow executions, with sample values and usage statistics
Use this endpoint to:
- Understand what variables are available for use in workflow steps
- Review variable types and sample values for debugging
- Build autocomplete for variable references in workflow editors
Next
Retrieve workflow definition

