Authentication for localhost on n8n cloud

Hi all,

I’ve been using a workflow like this one to back up and (most importantly) version control our workflows on n8n cloud:

It pulls a list of workflows down from the URL:


@jan kindly gave me this URL back in December.

Although the workflow has worked since December, and has never changed, access to the above URL began failing a while ago:

{"status":"rejected","reason":{"message":"401 - \"Unauthorized\"","name":"Error","stack":"Error: Request failed with status code 401\n    at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n    at IncomingMessage.emit (node:events:538:35)\n    at IncomingMessage.emit (node:domain:475:12)\n    at endReadableNT (node:internal/streams/readable:1345:12)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)"}}

Has something changed on n8n cloud to prevent localhost access? :thinking:

There is an additional requirement for a JWT token now. See Credential unauthorized - #3 by pemontto

These are unpublished APIs and are subject to unexpected change. There is however a public API on the horizon n8n Public API by RicardoE105 · Pull Request #3064 · n8n-io/n8n · GitHub


This was the perfect fix, thanks @pemontto!