Skip to main content
GET
/
api
/
v2
/
public
/
workflow
/
:workflow_id
/
edit
curl -X GET "https://app.refold.ai/api/v2/public/workflow/{workflow_id}/edit" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"
{
  "_id": "69fdfe21957a1b5597aa04c3",
  "associated_workflow": "69fdfe21957a1b5597aa04bd",
  "name": "Daily Sync",
  "enable_schema_validation": false,
  "nodes": [
    { "id": "1", "type": "start" }
  ],
  "edges": [],
  "data_slots": [],
  "createdAt": "2026-05-08T15:15:45.616Z",
  "updatedAt": "2026-05-08T15:15:45.616Z"
}
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.
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 key
x-api-key
string
Your Refold API key.
linked_account_id
string
The linked account that owns the workflow.
Option 2 — Session token
Authorization
string
Session token. Format: Bearer YOUR_SESSION_TOKEN

Path Parameters

workflow_id
string
required
The workflow ID. This draft ID is what you pass to Publish Workflow — publishing then returns a separate published ID.

Response

Returns the draft workflow, including nodes, edges, data_slots, and the link to its associated_workflow.
{
  "_id": "69fdfe21957a1b5597aa04c3",
  "associated_workflow": "69fdfe21957a1b5597aa04bd",
  "name": "Daily Sync",
  "enable_schema_validation": false,
  "nodes": [
    { "id": "1", "type": "start" }
  ],
  "edges": [],
  "data_slots": [],
  "createdAt": "2026-05-08T15:15:45.616Z",
  "updatedAt": "2026-05-08T15:15:45.616Z"
}
curl -X GET "https://app.refold.ai/api/v2/public/workflow/{workflow_id}/edit" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"