
# List media folders

List media folders. Folders have no manual ordering of their own. Only the media inside a folder can be [reordered](/api/media/patch-media-folders-folderid).

```sh
GET https://sitepaste.com/api/v1/public/media/folders
```

Requires the `media` scope.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/media/folders" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |

## Query parameters

This collection is returned whole. It takes no `limit` or `offset`, and sending either answers 422.

## Response

```json
{ "folders": [ { "id": "f2ghjk4lmnop", "name": "Gallery" } ] }
```

`folders` is always an array, empty when the workspace has none. Folders come back alphabetically by name.