List media folders
List media folders. Folders have no manual ordering of their own. Only the media inside a folder can be reordered.
GET https://sitepaste.com/api/v1/public/media/folders
Requires the media scope.
Usage
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. |
Query parameters
This collection is returned whole. It takes no limit or offset, and sending either answers 422.
Response
{ "folders": [ { "id": "f2ghjk4lmnop", "name": "Gallery" } ] }
folders is always an array, empty when the workspace has none. Folders come back alphabetically by name.