At a glance
- List published workflows
GET /api/v1/workflows?active=truereturns the active workflows. - Publish or unpublish
POST /workflows/{id}/activateand/workflows/{id}/deactivatepublish and unpublish a workflow. - Knowing it is OKActive only means published.
List published workflows
GET /returns the active workflows. Add limit and the returned cursor to page through large lists.api/ v1/ workflows?active= true - Authenticate with an API key in the
X-N8N-API-KEYheader. - The API is available on n8n Cloud Starter, Pro and Enterprise and on all self-hosted editions, but not on the free trial.
Publish or unpublish
POST /andworkflows/ {id}/ activate /publish and unpublish a workflow.workflows/ {id}/ deactivate - A scoped API key needs the
workflow:activatescope for these calls.
- List published workflows
- Publish or unpublish
- Knowing it is OK
Knowing it is OK
- Active only means published. It does not tell you the last run worked.
- Set an error workflow, which starts with the Error Trigger node, in Workflow Settings. n8n runs it when an execution fails, for example to send an email or Slack alert.
- Failed production executions are kept in the executions list if the workflow is set to save them.
Updated 2026-11-05. General guidance, not advice for your situation; we scope each project in writing before any work starts.
What the sources say
“With an error workflow, you can control how n8n responds to a workflow execution failure.”
n8n's integrations directory lists 2,629 integrations (n8n.io, as of 2026-11-08).
Sources
- n8n docs: Error handling (checked 2026-11-08)
- n8n integrations directory (checked 2026-11-08)
Questions people ask first
Is active the same as published?
Yes. n8n's API docs call activate and deactivate publish and unpublish.
Can I use the API on the n8n Cloud trial?
No. The API is not available on the free trial.
Tell us what you need built.
Tell us the process and the tools involved. We reply with questions or a written scope.
hello@pushbuild.com