Skip to main content
GET
List edges in a workflow’s current draft. Optionally filter to edges incident to a specific block by passing source_block or target_block. Returns the canonical { "data": [...], "list_metadata": { "before": null, "after": null } } pagination envelope shared with all Retab list endpoints. Cursor pagination is not yet implemented for this endpoint — list_metadata is always { before: null, after: null }. Use this endpoint with List Blocks when you need to reconstruct a workflow graph.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workflow_id
string
required
source_block
string | null

Filter by source block ID

target_block
string | null

Filter by target block ID

before
string | null

Edge id cursor: return the page before this id (mutually exclusive with after).

after
string | null

Edge id cursor: return the page after this id (mutually exclusive with before).

limit
integer
default:100

Maximum number of edges to return per page (1-200).

Required range: 1 <= x <= 200

Response

Successful Response

A page of WorkflowEdge resources. data holds the items and list_metadata carries the before/after cursors; pass after to fetch the next page.

data
WorkflowEdge · object[]
required
list_metadata
ListMetadata · object
required

Boundary resource IDs for page navigation.