# List all folders under an account in hierarchical structure

```http
GET https://api.synup.com/api/v4/folders/tree
```

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

Source: https://developer.synup.com/api/organizing-locations/list-all-folders-under-an-account-in-hierarchical-structure

## Example request

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

## Responses

| Status | Description |
| --- | --- |
| `200` | Successfully retrieved folder tree structure |
