curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/publish" \
-H "Authorization: Bearer YOUR_API_KEY"
Workflows
Publish or unpublish a workflow
Check a workflow and make its steps live, or stop it from starting new runs.
POST
/
workflows
/
{id}
/
publish
curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/publish" \
-H "Authorization: Bearer YOUR_API_KEY"
These endpoints are for the VIP plan only. Other plans get a
403. See Plan access.Publish
POST /v1/workflows/{id}/publish
Check the workflow and make the current steps live. Each publish saves a new version. The workflow must be on to start runs.
If the check finds problems, nothing is published and we answer 400 with every problem in errors. Each field names the step as nodes.<stepId>.<field>. A problem with the whole workflow, like a missing trigger, uses nodes:
{
"type": "https://api.nedzo.ai/errors/validation-error",
"title": "Validation Error",
"status": 400,
"detail": "The workflow has steps that are not ready. Fix the steps listed in errors.",
"errors": [
{ "field": "nodes.crm.config.url", "message": "Webhook URL is required" }
]
}
scheduleError that says so. Publish again to try again.
Unpublish
POST /v1/workflows/{id}/unpublish
Stop the workflow from starting new runs. Its steps stay as they are, and you can publish again later.
Path Parameters
string
required
The workflow’s id.
curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/publish" \
-H "Authorization: Bearer YOUR_API_KEY"
Errors
| Status | When |
|---|---|
400 | Publish: the workflow failed the check, or it has a step that turns DND off. errors lists each problem. |
402 | The account has no plan, or its subscription is not active. |
403 | Your plan is not VIP, workflows are not on your plan, or the workspace is locked. |
404 | No workflow has this id, or it is not in this key’s scope. |
Was this page helpful?
