Folders
Operations about folders
Retrieve folders within a project. Supports filtering, sorting, field selection, and pagination.
The ID of the project.
JSON-encoded filter object. Supported fields — parentFolderId, name, tags (array of tag names), excludeFolderIdAndDescendants.
{"parentFolderId":"abc123","name":"My Folder"}JSON-encoded array of fields to include. Valid fields — id, name, createdAt, updatedAt, project, tags, parentFolder, workflowCount, subFolderCount, path.
["id","name","tags","workflowCount"]Sort order for results.
Number of items to skip for pagination. Defaults to 0.
Number of items to return. Defaults to 10.
Operation successful.
Total number of folders matching the query.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
GET /api/v1/projects/{projectId}/folders HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"count": 1,
"data": [
{
"id": "zLXWgYyZrZ4Gn1Vk",
"name": "My Folder",
"parentFolderId": "kRZ0ewrAEAhCkTBd",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"homeProject": {
"id": "VmwOO9HeTEj20kxM",
"name": "Marketing",
"type": "team",
"icon": {
"type": "emoji",
"value": "text",
"color": "text"
}
},
"parentFolder": {
"id": "zLXWgYyZrZ4Gn1Vk",
"name": "My Folder",
"parentFolderId": "text"
},
"tags": [
{
"id": "text",
"name": "text"
}
],
"workflowCount": 1,
"subFolderCount": 1,
"path": [
"Marketing",
"Campaigns"
]
}
]
}Create a folder within a project.
The ID of the project, or personal to create the folder in the calling user's own personal project.
My FolderkRZ0ewrAEAhCkTBdOperation successful.
zLXWgYyZrZ4Gn1VkMy FolderkRZ0ewrAEAhCkTBdThe request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Unsupported media type.
POST /api/v1/projects/{projectId}/folders HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"name": "My Folder",
"parentFolderId": "kRZ0ewrAEAhCkTBd"
}{
"id": "zLXWgYyZrZ4Gn1Vk",
"name": "My Folder",
"parentFolderId": "kRZ0ewrAEAhCkTBd",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Get folder details including sub-folder and workflow counts.
The ID of the project.
The ID of the folder.
Operation successful.
zLXWgYyZrZ4Gn1VkMy FolderkRZ0ewrAEAhCkTBdTotal number of sub-folders (recursive).
Total number of workflows (recursive).
Unauthorized
Forbidden
The specified resource was not found.
GET /api/v1/projects/{projectId}/folders/{folderId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "zLXWgYyZrZ4Gn1Vk",
"name": "My Folder",
"parentFolderId": "kRZ0ewrAEAhCkTBd",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"totalSubFolders": 1,
"totalWorkflows": 1
}Delete a folder within a project. When transferToFolderId is provided, workflows and sub-folders are moved to the target folder before deletion. When omitted, workflows are moved to the project root and archived, and child folders are deleted.
The ID of the project.
The ID of the folder.
Optional target folder ID to move workflows and sub-folders into before deleting.
Operation successful.
No content
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
DELETE /api/v1/projects/{projectId}/folders/{folderId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
No content
Update folder name or parent folder.
The ID of the project.
The ID of the folder.
Renamed FolderID of the parent folder to move this folder into. Set to "0" to move the folder to the project root.
abc123Operation successful.
zLXWgYyZrZ4Gn1VkMy FolderkRZ0ewrAEAhCkTBdThe request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Unsupported media type.
PATCH /api/v1/projects/{projectId}/folders/{folderId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"name": "Renamed Folder",
"parentFolderId": "abc123"
}{
"id": "zLXWgYyZrZ4Gn1Vk",
"name": "My Folder",
"parentFolderId": "kRZ0ewrAEAhCkTBd",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Last updated
Was this helpful?