Export Workflow

GET/api/v1/workflows/{id}/export
X-API-Key<token>

Your Sim API key (personal or workspace). Generate one from the Sim dashboard under Settings > API Keys.

In: header

Path Parameters

id*string

The unique workflow identifier.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET \  "https://www.sim.ai/api/v1/workflows/{id}/export" \  -H "X-API-Key: YOUR_API_KEY"
{
  "data": {
    "version": "1.0",
    "exportedAt": "2026-06-20T14:15:22Z",
    "workflow": {
      "id": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
      "name": "Customer Support Agent",
      "description": "Routes incoming support tickets",
      "workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
      "folderId": null
    },
    "state": {
      "blocks": {},
      "edges": [],
      "loops": {},
      "parallels": {},
      "metadata": {
        "name": "Customer Support Agent",
        "description": "Routes incoming support tickets",
        "exportedAt": "2026-06-20T14:15:22Z"
      }
    }
  }
}
{
  "error": "string",
  "details": [
    {}
  ]
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}