Skip to content
SynupAPI
Get an API key
GETapi.synup.com/api/v4/folders/tree

List all folders under an account in hierarchical structure

This API retrieves a complete hierarchical tree of all active folders within an account.

Response Includes:

  • Folder hierarchy levels (parent and nested subfolders)
  • Location count within each folder
  • Nested subfolder details for a structured view
Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Request

Request
curl -X GET 'https://api.synup.com/api/v4/folders/tree' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Responses

StatusDescription
200Successfully retrieved folder tree structure
Example response (generated from the schema)
{
  "data": {
    "getFolderTree": [
      {
        "id": "67049f29-3bc6-4e82-875b-02159b4b1fea",
        "name": "root",
        "level": 0,
        "locationCount": 25,
        "subFolders": [
          null
        ]
      }
    ]
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.getFolderTreearray of objectoptional
data.getFolderTree[].idstringrequiredUnique identifier for the folder
data.getFolderTree[].namestringrequiredName of the folder
data.getFolderTree[].levelintegerrequiredHierarchical level of the folder (0 being root)
data.getFolderTree[].locationCountintegerrequiredNumber of locations contained within this folder
data.getFolderTree[].subFoldersarray of objectrequiredList of child folders under this folder