Skip to main content
GET
List Folders

Authorizations

Authorization
string
header
default:$CARTESIA_API_KEY
required

Cartesia API key (sk_car_...). Get one at play.cartesia.ai/keys.

Headers

Cartesia-Version
enum<string>
default:2026-03-01
required

API version header.

Available options:
2026-03-01
Example:

"2026-03-01"

Query Parameters

parent_ids[]
string[]

Filter to folders with these parent IDs. Repeat the parameter to pass multiple values (e.g., ?parent_ids[]=folder_abc&parent_ids[]=null). Pass the literal string null to include top-level folders. Defaults to [null] (top-level folders only).

depth
integer
default:3

How many levels of nested children to include in the response, between 1 and 3. Defaults to 3.

Required range: 1 <= x <= 3
starting_after
string

A cursor for pagination. Pass the ID of the last folder from the previous page to fetch the next page.

ending_before
string

A cursor for pagination. Pass the ID of the first folder from the previous page to fetch the previous page.

limit
integer
default:10

The number of folders to return per page, ranging between 1 and 100. Defaults to 10. Pagination applies to the top-level folders in the response; nested children do not count against this limit.

Required range: 1 <= x <= 100

Response

200 - application/json

A paginated tree of folders.

data
FolderTreeResponse · object[]
required

The paginated list of top-level folders matching the request.

has_more
boolean
required

Whether more results are available after this page.

next_page
string | null

An ID that can be passed as starting_after or ending_before to get the next page.