Workflows
Unpublish a workflow
Stop a workflow from starting new runs.
POST
/
workflows
/
{id}
/
unpublish
curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/unpublish" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspaceId": "223e4567-e89b-12d3-a456-426614174000",
"name": "Welcome text",
"isPublished": false,
"isActive": true,
"version": 2,
"publishedAt": "2026-10-11T09:00:00Z",
"createdAt": "2026-10-01T09:00:00Z",
"updatedAt": "2026-10-12T09:00:00Z",
"nodes": [
{ "id": "start", "type": "contactCreated", "parentId": null, "pathId": null, "config": {}, "position": { "x": 0, "y": 0 } },
{ "id": "text", "type": "sendSms", "parentId": "start", "pathId": null, "config": { "phoneNumberId": "323e4567-e89b-12d3-a456-426614174000", "message": "Hi {{firstName}}!" }, "position": { "x": 0, "y": 120 } }
]
}
This endpoint is for the VIP plan only. Other plans get a
403. See Plan access.Path Parameters
curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/unpublish" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspaceId": "223e4567-e89b-12d3-a456-426614174000",
"name": "Welcome text",
"isPublished": false,
"isActive": true,
"version": 2,
"publishedAt": "2026-10-11T09:00:00Z",
"createdAt": "2026-10-01T09:00:00Z",
"updatedAt": "2026-10-12T09:00:00Z",
"nodes": [
{ "id": "start", "type": "contactCreated", "parentId": null, "pathId": null, "config": {}, "position": { "x": 0, "y": 0 } },
{ "id": "text", "type": "sendSms", "parentId": "start", "pathId": null, "config": { "phoneNumberId": "323e4567-e89b-12d3-a456-426614174000", "message": "Hi {{firstName}}!" }, "position": { "x": 0, "y": 120 } }
]
}
Errors
| Status | When |
|---|---|
400 | The workflow id is not a valid UUID. |
402 | The account has no plan, or its subscription is not active. |
403 | Your plan is not VIP. |
404 | No workflow has this id, or it is not in this key’s scope. |
Was this page helpful?
⌘I
curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/unpublish" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"workspaceId": "223e4567-e89b-12d3-a456-426614174000",
"name": "Welcome text",
"isPublished": false,
"isActive": true,
"version": 2,
"publishedAt": "2026-10-11T09:00:00Z",
"createdAt": "2026-10-01T09:00:00Z",
"updatedAt": "2026-10-12T09:00:00Z",
"nodes": [
{ "id": "start", "type": "contactCreated", "parentId": null, "pathId": null, "config": {}, "position": { "x": 0, "y": 0 } },
{ "id": "text", "type": "sendSms", "parentId": "start", "pathId": null, "config": { "phoneNumberId": "323e4567-e89b-12d3-a456-426614174000", "message": "Hi {{firstName}}!" }, "position": { "x": 0, "y": 120 } }
]
}