Disable the public API
Last updated
Was this helpful?
The n8n public REST API allows you to programmatically perform many of the same tasks as you can in the n8n GUI.
If you don't plan on using this API, n8n recommends disabling it to improve the security of your n8n installation.
To disable the public REST API, set the N8N_PUBLIC_API_DISABLED environment variable to true, for example:
export N8N_PUBLIC_API_DISABLED=trueTo disable the API playground, set the N8N_PUBLIC_API_SWAGGERUI_DISABLED environment variable to true, for example:
export N8N_PUBLIC_API_SWAGGERUI_DISABLED=trueRefer to Deployment environment variables for more information on these environment variables.
Refer to Configuration for more information on setting environment variables.
Last updated
Was this helpful?
Was this helpful?