# List Room folders (/docs/api-reference/list_room_folders)

`GET /v1/rooms/{room_id}/folders` · operation `list_room_folders`

Lists the folders in a Room that you can see. With parent_folder_id (a folder ID, or root for the top), only the folders directly inside it; without it, every folder you can see, flat, to build the tree. Someone a folder was shared with sees that folder as their top.

**Sign-in:** a signed-in person's access token (`Authorization: Bearer …`), which AI apps get through MCP sign-in; or a Workspace API key in the `X-SMB-API-Key` header.

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `room_id` | string | yes |  |

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `parent_folder_id` | `root` or string | no | A folder ID, or root for the Room's top level. |

### Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `SMB-Workspace-Id` | string (uuid) | yes | Workspace where this operation runs. Required for user tokens and Workspace API keys. |

### Response

**200** Successful authorized response.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `folders` | array of object | yes |  |
| `folders[].room_folder_id` | string | yes |  |
| `folders[].room_id` | string | yes |  |
| `folders[].parent_folder_id` | string or null | yes | The folder it is in; null at the top (or when you can't open the folder above). |
| `folders[].name` | string | yes |  |
| `folders[].position` | integer | yes |  |
| `folders[].access_mode` | one of `inherit`, `restricted` | yes | inherit: everyone who can see the folder above (or the Room). restricted: only people added to it. |
| `folders[].item_count` | integer | yes | Folders and files inside it that you can see. |
| `folders[].access_level` | one of `view`, `edit`, `full_access` | yes | Your access on this folder. |
| `folders[].created_at` | string | yes |  |
| `folders[].updated_at` | string | yes |  |
| `request_id` | string | yes |  |

### Errors

- `400` The request is invalid.
- `401` Authentication is required.
- `403` The caller is not authorized.
- `404` The resource was not found.
- `409` The resource revision or idempotency input conflicts.
- `413` The request body is too large.
- `415` The request must be JSON.
- `422` Required evidence is missing.
- `429` Rate limit reached; honor Retry-After.
- `500` The request could not be completed.
- `502` A dependency returned an invalid response.
- `503` The service is temporarily unavailable.

### Example

```bash
curl --request GET "https://api.smb.co/v1/rooms/$ROOM_ID/folders" \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header "SMB-Workspace-Id: $WORKSPACE_ID"
```