Edges
Create Edge
Create a new edge connecting two blocks.
Validates that:
- Both source and target blocks exist in the workflow
- The connection is semantically valid (type compatibility, container rules, etc.)
POST
Connect two blocks by creating an edge.
The create route is flat: send
workflow_id in the request body.
You provide the edge ID — it must be unique within the workflow. Use a readable convention (e.g. edge-start-to-extract) so the graph stays inspectable.
source_handle and target_handle reference handles declared by each block. The handle naming convention is direction + slot:
output-file-0,output-json-0,output-file-booking-confirmation,output-json-needs-review, …input-file-0,input-json-0, …
handle_key, not
the display label. Inspect the source block before wiring those edges.
Authorizations
Body
application/json
Create a new edge connecting two blocks in a workflow.
Response
Successful Response
Public live workflow edge object.
Foreign key to workflow
ID of the source block
ID of the target block
Output handle on source block
Input handle on target block