---
title: "List workspace media-library folders"
method: GET
path: "/v1/asset-folders"
tags: ["asset-folders"]
---

# List workspace media-library folders

`GET /v1/asset-folders`

## Request

- Base URL: `https://us1.platform.bird.com`
- URL: `https://us1.platform.bird.com/v1/asset-folders`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `bird_session`

Returns the workspace's media-library folders as a flat list, each carrying its
`parent_id` and its resolved `path`, most recently created first.

Assemble the tree from `parent_id`. The ordering is by creation time rather
than by position in the tree, so a page can contain a folder whose parent has
not arrived yet. Page through to the end before treating a missing parent as
an orphan. A workspace supports up to 1,000 active folders and 10,000 retained
folders, including deleted folders. Deletion frees an active slot but does not
release retained capacity.

## Query parameters

- `sort` 'created_at': Field used to order media-library records.
- `order` 'asc' | 'desc': Sort direction, ascending or descending.
- `limit` integer
- `starting_after` string
- `ending_before` string
- `include_total` boolean

## Headers

- `X-Workspace-Id` string
- `X-Organization-Id` string

## Response `200`

A page of folders.

- AssetFolderList
  - `data` AssetFolder[], required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `id` string, required
    - `name` string, required: The folder's display name. Unique among folders sharing the same parent, compared without regard to case.
    - `parent_id` string, required
    - `path` string, required: The folder's location written out from the top level, such as `/Marketing/Logos`. Provided so a caller can display a folder without walking its parents.
  - `next_cursor` string, nullable, required: Cursor for the next page. Pass back as `starting_after` to advance forward. `null` when no next page exists.
  - `prev_cursor` string, nullable, required: Cursor for the previous page. Pass back as `ending_before` to step backward. `null` when no previous page exists.
  - `refresh_cursor` string, nullable, required: Refresh anchor, the first row of this response. Pass back as `ending_before` to fetch what precedes it in the current sort order. On a newest-first sort those are the items that have appeared since; on any other sort they are the items that sort earlier, so refreshing such a list means re-fetching it instead. Non-`null` whenever `data` is non-empty; `null` only on an empty page. Distinct from `prev_cursor`.
  - `total` integer, nullable: Total number of items matching the request's filters across all pages. Present only when `include_total=true` was passed; otherwise `null`.

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Insufficient permissions
- `404`: Resource not found
- `422`: The request has invalid field values, violates a business rule, or carries a query parameter the endpoint does not declare. Field validation errors use `type: validation_error` and include the affected fields in `details`. Business-rule errors identify the failed rule in `type`.
- `429`: Rate limit exceeded
- `500`: Internal server error
- `501`: The operation is not supported

---

[API](https://skmtc.dev/messagebird/apis/bird-api.md) · [All operations](https://skmtc.dev/messagebird/apis/bird-api/llms.txt) · [OpenAPI document](https://skmtc.dev/messagebird/apis/bird-api/revisions/6dfce1179799?raw)
