Skip to main content
GET
/
agents
/
folders
List Folders
curl --request GET \
  --url https://api.cartesia.ai/agents/folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Cartesia-Version: <cartesia-version>'
{
  "data": [
    {
      "id": "<string>",
      "parent_id": "<string>",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "agents": [
        {
          "id": "<string>",
          "name": "<string>"
        }
      ],
      "documents": [
        {
          "id": "<string>",
          "name": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "metadata": {}
        }
      ],
      "children": "<array>"
    }
  ],
  "has_more": true,
  "next_page": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cartesia.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Headers

Cartesia-Version
enum<string>
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.