# List Folders

`GET /folders`

Returns a cursor-paginated list of accessible, non-deleted folders. Follow `nextCursor` until it is `null`.
## Authentication

Use one of the following authentication alternatives:

- **API token** (`bearerToken`) : Send a named API token in the Authorization header. Send it in the `Authorization: Bearer <token>` header.
- **Better Auth browser session** (`browserSession`) : Use the Better Auth session cookie from a signed-in browser session. Send it in the `better-auth.session_token` cookie.
## Token permissions

API tokens must include `pages:read`.
## Parameters

- `cursor` (query, optional): Cursor returned by a previous list response.
- `limit` (query, optional): Number of folders to return. Defaults to 50 and cannot exceed 100.
## Responses

### 200

A page of accessible folders and the cursor for the next page.


### `application/json`

```json
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "parentId": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "icon": "string",
      "ownerId": "00000000-0000-0000-0000-000000000000",
      "permission": "view",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "nextCursor": "string"
}
```

### 403

The API token is missing a required scope: pages:read.


### `application/json`

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
