# Check if an n8n workflow is published with the API

## At a glance

**List published workflows**`GET /api/v1/workflows?active=true` returns the active workflows.

**Publish or unpublish**`POST /workflows/{id}/activate` and `/workflows/{id}/deactivate` publish and unpublish a workflow.

**Knowing it is OK**Active 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

- [n8n docs: Error handling](https://docs.n8n.io/flow-logic/error-handling/) (checked 2026-11-08)
- [n8n integrations directory](https://n8n.io/integrations/) (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.

## Read next

[**n8n**](https://pushbuild.com/tools/n8n.html)[**n8n silent failures**](https://pushbuild.com/guides/n8n-silent-failures.html)[**Retrying a failed n8n execution**](https://pushbuild.com/guides/n8n-retry-failed-execution.html)

## 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](mailto:hello@pushbuild.com?subject=Automation%20question)

---
As of 2026-12-03. Source: https://pushbuild.com/guides/n8n-api-check-workflow-published.html
