Pushbuild

Check if an n8n workflow is published with the API

In the n8n public API, "active" is the field behind publishing. The API can list active workflows and switch them on or off, and an error workflow tells you when a published workflow fails.

Get a free written scope

We reply within 20 minutes with a written scope and a mockup of what we’d build.

At a glance

  1. List published workflowsGET /api/v1/workflows?active=true returns the active workflows.
  2. Publish or unpublishPOST /workflows/{id}/activate and /workflows/{id}/deactivate publish and unpublish a workflow.
  3. Knowing it is OKActive only means published.

List published workflows

  • GET /api/v1/workflows?active=true returns the active workflows. Add limit and the returned cursor to page through large lists.
  • Authenticate with an API key in the X-N8N-API-KEY header.
  • 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 /workflows/{id}/activate and /workflows/{id}/deactivate publish and unpublish a workflow.
  • A scoped API key needs the workflow:activate scope for these calls.
  1. List published workflows
  2. Publish or unpublish
  3. Knowing it is OK
The parts of this guide, in order.

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

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