Get folders with internal n8n API

Get your workflow’s folder, move workflows to a folder, etc.

You can use the n8n internal API to do this. This is a temporary solution until they add it to public API, which they will certainly do.

WARNING: Using the internal n8n API is not recommended, and will create code that is likely to break in the future.

  1. Login to the API by making an HTTP node as follows:

  1. Create a request using the cookie you got back, as follows:

If you want to know what internal API calls you can make, hit f12 in Chrome and watch what the website calls as you interact with it. That will reveal POST body, endpoints, etc.

Hope this helps someone! Meanwhile, up-vote this community request to get official folder API:
(Create folders in n8n using n8n public api)