Workflow Export & Import
Programmatic export and import of workflows as .strongly.json files. Export captures the full workflow definition; import is a two-phase flow -- validate first to discover unresolved dependencies, then execute with resolved mappings.
All endpoints require authentication via X-API-Key header and the appropriate scope.
Export Object
{
"format": "strongly-workflow",
"version": "2.0",
"exportedAt": "2026-05-16T10:30:00.000Z",
"workflow": {
"name": "PII Redaction Pipeline",
"description": "Multi-stage PII redaction workflow",
"triggerType": "manual",
"triggerConfig": {},
"nodes": [],
"connections": [],
"environmentVariableNames": ["MYZOE_DATA_KEY"],
"secretNames": ["PACER_PASSWORD"]
},
"dependencies": {
"aiModels": [
{ "refId": "ai_model_0", "type": "ai_model", "name": "65f1a2b3c4d5e6f708192a3b" }
],
"addons": [],
"dataSources": [],
"workflows": []
}
}
The file is format version 2.0, camelCase throughout like the rest of the API. A node config field that named one of your resources holds { "$ref": "dependencies.<category>[<refId>]" } instead (for example dependencies.aiModels[ai_model_0]), and import puts back the resource you map it to. environmentVariableNames names the workflow's environment variables, never their values: the imported workflow has each with an empty value, to set on it. A name the platform sets in the sandbox is refused at import (400 invalid-env). secretNames names its secrets, never a value: the imported workflow lists each as not set (setAt: null) until you set it. Import reads version 2.0 only: a 1.0 file (snake_case keys) is refused with 400 invalid-format; export the workflow again.
GET /api/v1/workflows/:id/export
Export a workflow as its .strongly.json document: a read like any other, with the Export object in data. That object is the .strongly.json file, the same file the dashboard's Export button downloads.
Scope: workflows:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Workflow ID to export |
Response 200 OK
{
"data": { /* Export object */ },
"meta": {
"requestId": "req_abc123"
}
}
Save data as <workflow-name>.strongly.json; POST /api/v1/workflows/import takes that document as exportData.
POST /api/v1/workflows/import
Import a workflow from .strongly.json data. This endpoint is a two-phase flow:
- Validate -- call without
resolvedDepsto validate the export and receive a list of dependency candidates that need to be mapped to local resources. - Execute -- call again with
resolvedDepsto perform the import.
Scope: workflows:write
Request Body (validation phase)
{
"exportData": { /* the Export object: the `data` of the export file */ }
}
| Field | Type | Required | Description |
|---|---|---|---|
exportData | object | Yes | The Export object. It must have format: "strongly-workflow", version: "2.0" and a workflow with name and nodes |
resolvedDeps | object | No | { "<refId>": "<resource id>" }: for each dependency the export declares, the id of the resource here that stands in for it ({} when it declares none). Omit for validation only |
Response 200 OK (validation phase)
{
"data": {
"valid": true,
"workflowName": "PII Redaction Pipeline",
"nodeCount": 4,
"connectionCount": 3,
"dependencyCount": 1,
"resolutions": [
{
"refId": "ai_model_0",
"resolutionType": "unresolved",
"candidates": []
}
]
},
"meta": {
"requestId": "req_abc123"
}
}
Request Body (execution phase)
{
"exportData": { /* the Export object */ },
"resolvedDeps": {
"ai_model_0": "65f1a2b3c4d5e6f708192a3b"
}
}
Every dependency in the export needs an entry; an unmapped refId is refused.
Response 201 Created (execution phase)
The new workflow, as GET /api/v1/workflows/:id shows it.