v1

latestOpenAPI 3.0.12026-07-2696152184.1 KB
Folders

List Folders

List knowledge base folders

get/agents/folders

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).

depthinteger

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

starting_afterstring

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

ending_beforestring

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

limitinteger

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.

Headers

Cartesia-Version'2026-03-01' date required
Example:2026-03-01

API version header.

Response

A paginated tree of folders.

has_moreboolean required

Whether more results are available after this page.

next_pagestring nullable

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