Hello,
When I open a workflow in the browser, the network inspector shows the API returning fields like blockData and templateData, which describe the workflow's structure.
However, these fields do not appear in the Get a workflow API documentation.
Example snippet from what I see in the browser:
{
"workflow": {
"id": "48ee968c-19c5-4fb5-bf2a-5a7c608ca652",
"saveId": "c9ef1594-f06d-4ee3-8e47-d24f2786b4fd",
"name": "My First Workflow - Alon Dankner - 2025-05-29 3:48:02 PM",
"apiKey": "retool_wk_*****",
"description": null,
"organizationId": 1012398,
"isEnabled": false,
"crontab": null,
"timezone": "Asia/Jerusalem",
"blockData": [
{
"top": 48,
"left": 48,
"uuid": "7f8609b2-57d4-431f-87ff-5ccecb9af7f5",
"options": {},
"pluginId": "startTrigger",
"blockType": "webhook",
"editorType": "JavascriptQuery",
"environment": "production",
"isMinimized": false,
"resourceName": "webhook",
"incomingOnSuccessEdges": []
},
{
"top": 48,
"left": 480,
"uuid": "4bcaad6b-d162-4ece-b2d2-8a88ef470660",
"pluginId": "code1",
"blockType": "code",
"dimensions": {
"width": 400,
"height": 280
},
"editorType": "JavascriptQuery",
"environment": "production",
"resourceName": "JavascriptQuery",
"incomingOnSuccessEdges": [
"7f8609b2-57d4-431f-87ff-5ccecb9af7f5"
]
},
{
"top": 48,
"left": 1072,
"uuid": "ea214114-15b5-4ffa-9bfd-d2c0e541aa27",
"pluginId": "query1",
"blockType": "default",
"editorType": "SMTPQuery",
"environment": "production",
"resourceName": "retool_email",
"incomingOnSuccessEdges": [
"4bcaad6b-d162-4ece-b2d2-8a88ef470660"
]
}
],
"templateData": "[\"~#iR\",[\"^ \",\"n\",\"appTemplate
Example snippet from what I get from the Get a workflow API call:
{
"success": true,
"data": {
"id": "48ee968c-19c5-4fb5-bf2a-5a7c608ca652",
"name": "My First Workflow - Alon Dankner - 2025-05-29 3:48:02 PM",
"description": null,
"crontab": null,
"timezone": "Asia/Jerusalem",
"is_enabled": true,
"folder_id": "workflow_6392627",
"protected": false,
"created_by": 1711269,
"created_at": "2025-05-29T12:48:02.479Z",
"updated_at": "2025-05-29T13:17:58.947Z"
}
}
Is there an API to get the complete workflow definition, including blockData and templateData? If so, what endpoint or parameters should be used?