Why the n8n public API deserves its own hardening decision
If your self-hosted n8n instance is not using the public API, close it. If you do need it, limit who holds API keys, from which networks they can be used, and for how long they stay valid. Many instances hold real credentials, and the public API is often left on by default or after a pilot ends, so it gets no review at all. Treat that as a decision to make on purpose, not as something to inherit from the installation.
The public API is a separate entry point from the editor and from webhooks. Your editor login protects the UI, your webhook controls protect the trigger URLs you publish, but neither one governs requests that arrive through the API with a key. A workflow can be locked down in the editor and still be created, changed, activated or executed through an API key that nobody reviews. That is why the API needs its own review in your hardening plan, with its own owner, its own inventory of keys and its own network rules.
Confirm the exact setting names, the key lifecycle options and any scope model in the n8n documentation for the version you run, because these change between releases. The pillar facts supplied for this page do not establish which API keys, scopes or controls each n8n plan includes, so check the n8n pricing page and your own installation before you plan around a specific edition. Ask your vendor or partner to show you each control working in your environment rather than relying on a feature list.
Which n8n entry points to review alongside the public API
The public API is one of several ways into a self-hosted n8n instance. A reviewer should inventory these entry points together, because a control applied to one surface often leaves another open. Each card below names what the surface exposes, who can reach it and what to check.
Public API and API keys
The public API lets programs read and change workflows, executions and other instance objects using an API key. Every key is a standing credential, so it is the first surface to inventory. Check which keys exist, who created them, which scopes they carry on your plan, when they expire and which systems hold them. Confirm the expiry and scope options your edition offers before writing a key policy.
Queue mode docsEditor and playground access
The editor is the browser interface where builders create and run workflows, and it is the most privileged human entry point. Any playground or test interface served alongside it should be listed separately, because it may stay reachable after the API is switched off. Check which networks can load the editor, whether it sits behind SSO or a proxy, and whether anyone can reach it from outside your corporate range.
SAML user management docsWebhook endpoints
Webhook endpoints are public URLs that start workflows when another system sends a request. They are a separate surface from the public API, with separate controls, so disabling the API does not close them. Inventory every webhook path, its authentication method, whether it accepts requests from the internet and whether test URLs remain active. Treat each open webhook as an entry point that runs workflow logic.
Main instance admin paths
The main instance holds the administrative functions, including user management, settings, credential storage and the database connection. Review which hosts, ports and reverse proxy routes reach the main instance, and which administrators can change its configuration. Confirm that administrative access is limited to named accounts and to networks your security team controls, and that changes to these settings are logged.
Queue mode workers and webhook processors
In queue mode, the main instance hands executions to worker nodes through Redis, and webhook processor nodes receive inbound requests. Each of these nodes must hold the encryption key so it can read stored credentials, which makes them sensitive even though they are not user-facing. Confirm which hosts run workers and webhook processors, which network paths reach Redis and PostgreSQL, and that their access is limited to what the instance needs.
Queue mode docsConfiguration options for the public API and when each fits
This table compares six postures for the n8n public API and playground, from turning the API off to restricting it at the network edge. Read each row for the situation it suits, the cost it carries for existing automations, and the setting to confirm in the n8n docs for your version and plan before you change anything.
| Posture | When it fits | Main trade-off | Confirm before relying on it |
|---|---|---|---|
| Disable the public API entirely | No external scripts, CI jobs or partner tools call the n8n API, and teams manage workflows only in the editor | Any integration that depends on the API stops working until it is rebuilt or re-enabled | The exact setting that turns the public API off, and whether it also hides API key management in the UI |
| Keep the API with a small set of named keys | A few known automations or pipelines need API access, and each has an owner who can be named | Keys are only as safe as their storage and sharing, and shared keys make it hard to tell who did what | Where keys are created, who can create them on your plan, and whether each key can be traced to a user |
| Add key expiry and scheduled rotation | Keys are used by scripts that teams rotate on a fixed cycle, or by vendors whose access must end on a date | Expired keys break jobs without warning, so rotation needs a change window and a deployment step for the new key | Whether expiry can be set when a key is created, and whether existing keys can be given an expiry after creation |
| Apply Enterprise scopes to keys | Your plan includes scoped API keys and you need each key limited to specific actions | Scope design takes time, and an overly narrow scope causes failures that look like errors in the automation | Whether your plan includes scopes, the scope names available in your version, and how scopes map to the endpoints your jobs call |
| Restrict network access at the reverse proxy or firewall | API calls come only from known CI runners, admin workstations or internal services with fixed address ranges | Remote staff, SaaS callbacks and new CI runners need address changes, so the allowlist must be maintained | Which path prefixes the API uses on your version, and that your proxy rules also cover the playground and webhook paths you do not intend to expose |
| Turn off the playground | Nobody needs to explore the API interactively on a production instance | Developers lose a convenient way to test endpoints and must use a staging instance or external client instead | The setting that disables the playground, and whether disabling it also affects documentation pages served by the instance |
How a request to the n8n public API passes through the controls
A calling script, CI job or integration sends its request to the network layer first, where a firewall or reverse proxy allowlist can drop traffic from unknown sources. Allowed requests reach the n8n public API, which checks whether the API is enabled, validates the API key, then checks expiry and scope where the plan supports them. Every decision that gets past the gate should land in the audit trail. The editor and webhook paths are drawn as separate branches because they are controlled by different settings and should be reviewed on their own.
Generic illustration of request flow, not a specific deployment.
Choosing an API posture by team situation
Illustrative scenario: a workflow team builds everything in the editor, and no script, pipeline or outside system has ever called the public API. The safest posture here is to turn off the public API and the playground and keep them off. Closing an unused entry point removes exposure that nobody depends on, so the main risk is missing a hidden caller. Confirm that no integration relies on the API before you disable it.
- Confirm zero callers. Review existing API keys, server access logs and scheduled jobs before changing anything, since a forgotten cron script is the most common surprise.
- Disable the public API and playground. Apply the setting that turns both off on every instance, including staging and development copies.
- Revoke leftover keys. Delete any API keys still stored in the database so that an old key cannot be used if the feature is re-enabled later.
- Keep the change under control. Record who made the change, when and why, and store the setting in version-controlled configuration where your deployment allows it.
Check that a test request to the API endpoint fails after the change, and keep the decision record for your next access review.
Illustrative scenario: a platform team runs three internal scripts that list recent executions and trigger two workflows. The API stays on, but access should be narrow and easy to trace. Each script needs its own identity, a defined lifetime and a known network origin, so that a leaked key has limited value and its use can be explained. Keep the playground off unless someone on the team uses it for development.
- One key per script. Issue a separate key for each script so that audit entries point to one purpose and one owner.
- Set an expiry on every key. Choose a lifetime that matches how often your team rotates credentials, and confirm how expiry is configured in your version.
- Limit scopes where available. If your plan includes API key scopes, grant only the operations each script uses, and confirm plan eligibility on n8n pricing.
- Restrict network origin. Allow requests only from the hosts that run the scripts, using firewall or proxy rules.
- Review key use. Check which keys were used, from where and how often, at a regular interval.
Before you finish, confirm that an expired or revoked key fails cleanly, and that the script owner knows how to rotate it.
Illustrative scenario: a delivery pipeline exports workflow definitions and triggers a release check, while an external ticketing system calls the API when a change request is approved. Here the API is a required dependency, so closing it would stop delivery. The aim is to give each caller its own narrow credential, keep the secret out of source code and make failures visible when credentials expire or networks change.
- Dedicated key per pipeline or system. Give each caller its own key so that a rotation or revocation affects one flow only.
- Store secrets in the CI secret store. Keep keys out of repositories, job logs and workflow definitions.
- Restrict by egress address. Allow the API only from the runner or gateway addresses, and document what happens when those addresses change.
- Align expiry with rotation. Schedule rotation before expiry and test the update in staging first.
- Keep call evidence. Retain key-use records alongside pipeline run history so that each release can be traced to the credential that made the call.
Confirm that a rotation in staging succeeds without a pipeline failure, and that the playground stays disabled on production instances.
Illustrative scenario: several internal teams share one self-hosted instance, each with its own projects and automations, and some teams call the API from their own networks. The main risks are shared credentials, orphaned keys after reorganizations and broad access granted for convenience. Ownership and periodic review matter more here than any single setting, because the instance outlives the teams that created its keys.
- Named owner for every key. Record the team, the accountable person and the stated purpose, and refuse keys without them.
- Scope access by team. Grant each team access only to the operations and projects it needs, and confirm with n8n how project boundaries map to API permissions in your version.
- Enforce network rules per team. Use the reverse proxy to allow each team's network range, and log denied requests.
- Run regular access reviews. Confirm each key is still needed, has an active owner and falls within its expiry window.
- Avoid shared administrator keys. Keep administrative access personal and separately logged.
Check that departed team members' keys are revoked during offboarding, and that the review produces signed records you can show an auditor.
How to lock down the n8n public API in a safe order
This sequence moves a self-hosted n8n instance from broad API exposure to a documented set of callers, scoped keys and network paths, with a verification step that proves the restrictions hold. Each step produces a record your security team can review.
Inventory every API caller from logs
Before changing anything, list each integration, script and user that calls the n8n public API. Start with the proxy or load balancer access logs, the n8n audit output and the list of API keys created in the instance, then match each key or source address to an owner and a business purpose. Record the source IP ranges, the endpoints used and the date of last use. This step is done when every active key and every calling address has a named owner, and any key with no traceable owner is flagged for removal. Confirm the audit and log coverage with your own environment, since retention depends on how your logs are kept.
Decide to disable or keep the API
For each caller, decide whether the public API is needed at all. If no approved integration uses it, plan to disable the public API and the playground for that instance through n8n's configuration, which your team should confirm for the version in use. If a caller needs it, keep the API enabled but limit it to that caller's keys and network path. Write the decision, the owner and the reason in a change record. This step is done when every caller has a keep or remove decision signed off by its owner and the security team.
Test the change in a matching staging instance
Build or refresh a staging instance that matches production in version, database, reverse proxy configuration and encryption key handling, then apply the planned disable or key changes there first. Run each approved integration against staging and check that its workflows still succeed. Because version upgrades can change API behavior, read the release notes for the n8n version in production and the version you plan to run before testing, and note any API changes in the change record. This step is done when every approved caller completes its test calls on staging with no unexpected errors.
Apply the disable and key controls
In production, apply the approved changes in a planned window: disable the public API or playground where the decision was to remove them, remove unused keys, and create replacement keys for kept integrations. Store each new key in your secret manager and not in workflow definitions or documentation. Where Enterprise scopes are licensed, assign each key the narrowest scope that covers its integration; where they are not, record that the key has full API access and treat that as a risk to be accepted or mitigated. This step is done when the key inventory matches the approved decisions and no key appears in a workflow or repository.
Move callers to rotated keys with expiry
Update each approved integration to use its new key, and set an expiry date on every key according to your rotation policy, confirming with the n8n documentation for your version that key expiry is available in your edition. Revoke the old keys once each caller has been switched and its logs show the new key in use. Record the rotation date and the next review date for each key. This step is done when no caller still presents a revoked key and every remaining key has an owner, an expiry date and a next review date.
Restrict network paths at the proxy
Configure the reverse proxy in front of n8n so that API and playground paths accept requests only from the approved source ranges, and deny everything else with a logged response. Keep webhook paths on their own rules so that changes to API access do not break trigger traffic. Test the proxy configuration with your standard change process and keep the configuration in version control. This step is done when the proxy rules are in version control, reviewed, and deployed to production.
Verify from an unapproved network and with an expired key
Run two negative tests against production. First, call the API from a source address outside the approved ranges and confirm the proxy refuses the request. Second, call the API with an expired or revoked key and confirm n8n rejects it. Also confirm that the disabled API paths do not respond with data. Save the request, response codes and timestamps as evidence. This step is done when both negative tests fail as designed, the approved integrations still succeed from their approved paths, and the evidence is attached to the change record.
Audit key use on a set schedule
Turn the verification into a recurring check. Review API key use logs against the inventory on a schedule your security team sets, look for keys with no recent use or calls from unexpected addresses, and remove or rotate them. Re-check the release notes whenever n8n is upgraded, because API behavior and key handling can change between versions. This step is done when the schedule, owner and review record exist, and the first review has closed any findings from the inventory.
Auditing API key use before and after the change
Before you revoke or disable anything, establish which API keys are actually in use, from where, and for which operations. Do not revoke a key on the assumption that nobody uses it. Start by listing every API key in the instance, then match each one against the requests the API has received over a window long enough to include your normal and periodic jobs, such as month-end reconciliations or quarterly reports. Record the key's name, the user or service account it belongs to, the source IP ranges or hosts that call it, and the endpoints and methods it hits (for example, workflow listing, execution retrieval, or workflow activation). Confirm in the n8n documentation for your version and plan which API request details, audit log entries and export options are available to you, since field names and retention differ and this page does not assume them. If the instance does not expose enough detail, plan a short period of logging at the reverse proxy or gateway in front of n8n so you have a baseline.
Record ownership and purpose for every key that survives the review. A key without a named owner, a documented purpose and a review date is a finding in most security reviews, so store these details in your secrets or asset register alongside the key's expiry date. Set a review date for each key that matches the risk it carries, and note which workflows or external systems depend on it. After the change, compare call patterns against the baseline for at least one full business cycle, looking for requests from unexpected sources, calls to endpoints the owner never used, and any failed authentication attempts against disabled or removed keys. Keep the baseline, the post-change comparison, the decision record and the revocation ticket together. These artifacts, plus the settings evidence, are what an internal auditor or a compliance assessor will ask to see when they test how API access is controlled and reviewed.
Risks that remain after closing the public API
Closing the public API removes one route in, but the instance still holds keys, a web editor and network paths that someone must manage. Each card below names a residual risk, the control that reduces it and the habit that keeps the control working after the first hardening pass.
Keys that outlive their purpose
API keys copied into scripts, CI variables or wiki pages often survive the project that created them. Once the public API is switched on, any copy of a key grants access until it is revoked. Set an expiry date on every key where your n8n edition supports it, and keep a register that maps each key to the pipeline or person that uses it. Ask your team to confirm which keys exist today, because a key that nobody remembers is usually the one that gets leaked.
Shared keys with no owner
A single key used by several integrations makes it impossible to tell which caller performed an action, and rotating it breaks every consumer at once. Give each integration its own key, record a named owner and a purpose, and scope it to the smallest set of permissions the integration needs. Review the register on a fixed schedule so that keys belonging to departed staff or retired workflows are removed rather than left active.
Editor and playground on the same host
Closing the public API does not close the web editor, and the playground, where present, is a separate interface on the same host. A reviewer should confirm which paths the reverse proxy serves, whether the editor is reachable from networks that do not need it, and whether it sits behind SSO or a stronger access gate. Disable the playground in the environment settings if your team does not use it, and test that the route returns an error from outside the approved network.
Network paths that bypass the proxy
A proxy rule only protects traffic that passes through it. Direct access to the container port, a second load balancer, a Kubernetes service of type NodePort or a debugging port opened during an incident can reach n8n without the restrictions you configured. Confirm that the n8n port is reachable only from the proxy and approved administration hosts, and scan the instance from outside the trusted network after every change to ingress or firewall rules.
Lost or unreviewed key logs
Without a retained record of key use, a reviewer cannot tell whether a leaked key was used, from where, or against which workflows. Decide where access and audit events are sent, how long they are kept and who reviews them. Check that log entries identify the key or user without storing the key value itself. Ask your team to confirm whether the log destination is inside your monitoring boundary, and to test that a review actually happens on a schedule.
Upgrades that change access behavior
A new n8n release can change default settings, add endpoints or alter how permissions are checked, which can reopen a surface you had closed. Treat each upgrade as a security change: read the release notes for API, authentication and editor changes, rerun your exposure tests in staging, and compare the result with the baseline before promoting to production. The release notes page is the place to start that review.
n8n release notesWhat buyers ask before paying for n8n public API hardening
Can we disable the n8n public API ourselves without a partner?
Yes, if your version's documentation confirms the setting and you can test the change in staging first. Disabling the public API and the playground is usually a configuration change, but the exact setting names depend on your n8n version, so confirm them against the documentation for the release you run before changing production. The harder part is not the switch itself. It is finding every integration, script and team that still calls the API, because a disabled API breaks those callers. Teams with a small number of known callers and a change window often handle this internally. Teams with many callers, unclear ownership or regulated change control usually find an outside review useful for the inventory and the test plan.
What drives the effort of n8n API hardening?
Effort rises with four things: the number of integrations calling the API, the number of API keys in use, the complexity of your network paths to the instance, and the gaps in your current audit trail. Each caller needs to be identified, tested against the new configuration and either moved to a supported path or retired. Each key needs an owner, a purpose and an expiry decision. Network restrictions depend on whether the instance sits behind a reverse proxy, a load balancer or a Kubernetes ingress, and on which networks legitimately need access. If key use is not logged, you will need to establish a baseline before you can prove that old keys are unused. A written scope should count each of these items so you can compare quotes on the same basis.
Do we need a higher n8n plan to use API key scopes?
Confirm this against the current n8n pricing page and documentation before you buy, because plan features change. The pillar research records that SSO and LDAP, environments with Git and log streaming are included in the Business and Enterprise plans, and that Enterprise adds dedicated support with an SLA. Those listings do not, by themselves, confirm which API key controls or scope options each plan includes, so ask n8n directly for the edition that provides fine-grained API key scopes on your deployment type. Also check whether your team has a Community edition instance, since its feature set differs from paid self-hosted plans. Ask for the answer in writing as part of your procurement file.
How long does n8n public API hardening take?
The duration depends mainly on your integration inventory, so no fixed timeline applies across instances. A team with few callers, documented keys and a clear owner can complete the work quickly, while a team with many workflows calling the API across several projects needs time for testing and coordinated cutovers. Change windows, staging availability and the time needed to contact each caller's owner also shape the schedule. The reliable way to get a timeline is a written scope that lists the inventory work, the configuration changes, the test cycles, the audit setup and the handover. Ask any provider, DeployOpen included, to state the schedule in that scope rather than offering a general estimate.
What do we need to provide for n8n API hardening?
The work needs four inputs from your side. First, an inventory of every caller of the public API, including scripts, external systems and workflows that use the API node or HTTP requests to the API. Second, staging access that mirrors production closely enough to test each caller. Third, change windows agreed with the business owners of affected workflows. Fourth, a named owner for API keys who can approve their retirement, rotation or scope limits. Without the inventory and key owner, most of the time goes to discovery, and the risk of breaking a business process rises. Your team should also decide who receives audit results and who signs off the final configuration.
Can an outside party attest that our n8n API is secure?
No. DeployOpen does not issue audit reports, attestations or certifications. What DeployOpen can do is configure the instance, test the exposed API and webhook paths, and prepare the evidence a compliance assessment will ask for, such as the settings in force, key inventory, network restrictions and audit logs. Independent auditors and certification bodies then assess that evidence against the framework your organization follows. If an auditor or customer asks for a formal opinion on the API controls, the request goes to that assessor, and your compliance lead should confirm early which evidence the assessor expects.
Limits to confirm in your environment before changing the API
Changes to the n8n public API touch settings, licensing, release behavior and network paths that differ between installations. The cards below list what to confirm with your n8n version, your license holder, your platform team and your security team before you disable or restrict anything.
Setting and scope names by version
Confirm that the exact configuration keys and API key scope names you plan to use exist in the n8n version you run. Names and defaults can change between releases, so check the installed version's documentation and the release notes rather than copying names from older guides. Test each setting in a staging instance with the same version and database as production, and record the version in your change ticket.
n8n release notesPlan requirements for API controls
Ask your n8n account contact which controls for API keys, scopes or related policies are available on your plan and whether they apply to the public API itself. SSO, LDAP, Git environments and log streaming are listed as Business and Enterprise features on the pricing page, so do not assume a control exists because a neighboring feature does. Get the answer in writing before the change request is approved.
n8n pricingLicense terms for enterprise code
Determine whether any enterprise-only controls you plan to use come from files with .ee in their name or directory. Those files fall outside the Sustainable Use License and need a valid Enterprise License. Ask your legal or procurement team to confirm that your current license covers how you use and modify the instance, including internal-only use, before you rely on those controls for compliance evidence.
n8n license termsRelease cadence and API behavior
n8n ships minor releases roughly weekly under semantic versioning, and 2.43 was released on 6 October 2026. Ask your platform team how quickly you will test and adopt new minor versions, and whether a change to API routes, key handling or defaults needs a regression test. Pin the version in your deployment manifests so that a routine pull does not change API exposure without review.
Queue mode and multi-main placement
In queue mode the main instance handles triggers and webhooks, and workers execute workflows against PostgreSQL and Redis. Confirm which processes actually serve the API in your topology, whether workers or webhook processors also expose it, and where your network rules must apply. Multi-main setups are limited to Enterprise self-hosted deployments, so if you run one, verify with n8n that the API and key handling behave the same on every main instance.
n8n queue mode docsProxy and identity enforcement
Confirm with your network and identity teams whether the existing reverse proxy, load balancer or API gateway can allow or deny requests to the API path by source address, and whether it can log key use. If it cannot, network restrictions will depend on host firewall rules alone. Document which layer owns each rule so that a future proxy change does not silently reopen the API.
How DeployOpen scopes and delivers n8n API hardening
DeployOpen treats the n8n public API as an exposure to be inventoried, reduced and monitored before any setting changes. Work runs inside your own infrastructure, with the scope, deliverables and timeline agreed in writing before the first change is made.
How we scope
- Inventory which API keys exist, who created them and which workflows or integrations depend on the API.
- Confirm whether the public API and playground are needed at all, or can be disabled for your deployment.
- Record your edition and plan, since API key scopes and expiry options depend on what your plan includes.
How we build
- Apply the agreed API and playground settings to staging first, then verify that legitimate integrations still authenticate.
- Set key expiry and scopes according to the scope document, and test that revoked or expired keys are rejected.
- Restrict network paths to the API from approved source ranges at your proxy or firewall, and test denied requests.
How we hand over
- Deliver a written configuration record covering settings changed, key inventory, network rules and rollback steps.
- Document how to review API key use, including where audit output is retrieved and how often your team should check it.
- Walk your operations and security staff through the changes and the retest results before the engagement closes.
How we support
- Offer ongoing support and upgrades as a retainer, so new key issues and n8n release changes are reviewed as they arrive.
- Retest API exposure after upgrades, major configuration changes or the addition of new integrations.
- Confirm with your team which support channel and response expectations apply, as these are set in the retainer terms.

