Workflows
Get Workflow Draft
Get the editable draft of a workflow.
GET
Return the editable draft of a workflow. If no draft exists yet, the published version is cloned into a new draft (along with any associated AI agent chats), and that draft is returned.
Option 2 — Session token
This authenticates as a linked account, so it operates on that account’s private workflows.
Authentication
This endpoint is scoped to a linked account, so it accepts either authentication method. Option 1 — API keyYour Refold API key.
The linked account that owns the workflow.
Session token. Format:
Bearer YOUR_SESSION_TOKENPath Parameters
The workflow ID. This draft ID is what you pass to Publish Workflow — publishing then returns a separate published ID.
Response
- 200 OK
- 404 Not Found
Returns the draft workflow, including
nodes, edges, data_slots, and the link to its associated_workflow.