# Get folderpath from /api/v1/workflows

**URL:** <https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411>\
**Category:** Questions\
**Tags:** rest-api\
**Created:** [May 13, 2025, 1:36am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411 "2025-05-13T01:36:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_A](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@Nick\_A](https://community.n8n.io/u/Nick_A)\
**Post date:** [May 13, 2025, 1:36am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/1 "2025-05-13T01:36:50Z")

</div>

## Describe the problem/error/question

Get folderpath from /api/v1/workflows

I would imagine I am missing something but can someone guide me in the right direction. if its not possible I would like to suggest the feature.

**Looking for:**  
when getting workflows using n8n API (/api/v1/workflows) I would imagine a new field for folderpath to show where it is stored but nothing like that exists.

## Please share your workflow

HTTP API Get Workflows

> **[API reference | n8n Docs](https://docs.n8n.io/api/api-reference/#tag/Workflow/paths/~1workflows/get)**
>
> API reference for n8n's public REST API.

## Information on your n8n setup

- **n8n version:** 1.91.3
- **Database (default: SQLite):** postgres
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** default
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** elestio/hetzner

---

<div class="post-metadata">

**Author:** ![tridi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tridi/32/109193_2.png) [@tridi](https://community.n8n.io/u/tridi)\
**Post date:** [May 13, 2025, 8:31am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/2 "2025-05-13T08:31:13Z")

</div>

hi i also need this feature to backup restore my n8n so i hope someone can point this feature already update because i also cant find the ID of all my folder

---

<div class="post-metadata">

**Author:** ![Wouter\_Nigrini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wouter_nigrini/32/150261_2.png) [@Wouter\_Nigrini](https://community.n8n.io/u/Wouter_Nigrini)\
**Post date:** [May 13, 2025, 10:35am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/3 "2025-05-13T10:35:42Z")

</div>

I believe workflows are stored inside the n8n db and not as files on the filesystem. If you’re looking to make backups or pull the content of workflows, have a look at this workflow to auto backup my workflows to git reading the content from the build in workflow node

You can see how to read the workflow JSON content from the “Compare Difference” code node. You can then do with this workflow json content whatever you want, save to file or push somewhere

---

<div class="post-metadata">

**Author:** ![tridi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tridi/32/109193_2.png) [@tridi](https://community.n8n.io/u/tridi)\
**Post date:** [May 13, 2025, 10:41am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/4 "2025-05-13T10:41:17Z")

</div>

Hi thanks for your insight but the output of get workflow node is still missing the folders id, imagine you already backup all workflow but when restore its not include the folders on it so we must mapping each workflow again to spesific folder

---

<div class="post-metadata">

**Author:** ![Wouter\_Nigrini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wouter_nigrini/32/150261_2.png) [@Wouter\_Nigrini](https://community.n8n.io/u/Wouter_Nigrini)\
**Post date:** [May 13, 2025, 11:27am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/5 "2025-05-13T11:27:56Z")

</div>

What do you mean by folder? As I mentioned, the workflows do not live in folders, but in the database iteself. Are you referring to the folder feature n8n added with the license thing where you can place workflows in hypothetical folders on n8n?

---

<div class="post-metadata">

**Author:** ![tridi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tridi/32/109193_2.png) [@tridi](https://community.n8n.io/u/tridi)\
**Post date:** [May 13, 2025, 11:53am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/6 "2025-05-13T11:53:53Z")

</div>

yes im pointing for that folder thing so it become useful to batch many workflow based on tag to spesific folder with API

---

<div class="post-metadata">

**Author:** ![Wouter\_Nigrini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wouter_nigrini/32/150261_2.png) [@Wouter\_Nigrini](https://community.n8n.io/u/Wouter_Nigrini)\
**Post date:** [May 13, 2025, 12:39pm UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/7 "2025-05-13T12:39:01Z")

</div>

Ahh ok im not too sure. Might be worth digging around in the n8n db and seeing how they store this. I’ll need to set that up and check

---

<div class="post-metadata">

**Author:** ![YopYan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yopyan/32/105995_2.png) [@YopYan](https://community.n8n.io/u/YopYan)\
**Post date:** [August 1, 2025, 6:36am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/8 "2025-08-01T06:36:52Z")

</div>

Hi,

Same here, I would like to filter workflows on folder like we can do with tags, name or project id.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/3/2349bf488dcd46062ef7aa34c1e97e15deb86660.png)

Is there any plan to make this folderId filter available ?

---

<div class="post-metadata">

**Author:** ![mcnarik](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mcnarik](https://community.n8n.io/u/mcnarik)\
**Post date:** [September 17, 2025, 6:44pm UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/9 "2025-09-17T18:44:35Z")

</div>

Will mention this post: [Get folders with internal n8n API](http://community.n8n.io/t/get-folders-with-internal-n8n-api/143360), regarding the topic. It is not full solution but someone may want to use it.

---

<div class="post-metadata">

**Author:** ![pedrones](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pedrones/32/62739_2.png) [@pedrones](https://community.n8n.io/u/pedrones)\
**Post date:** [October 13, 2025, 10:10am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/10 "2025-10-13T10:10:12Z")

</div>

I would like to use folders from API to fetch workflows only from a certain folder.  
This is really lacking in the n8n API!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [January 11, 2026, 10:10am UTC](https://community.n8n.io/t/get-folderpath-from-api-v1-workflows/114411/11 "2026-01-11T10:10:20Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
