Skip to main content
GET
List the source file tree under a path

Authorizations

Authorization
string
header
required

Session token from POST /auth/login, sent as Authorization: Bearer <token>.

Headers

X-Pinecone-Api-Version
string
default:2026-07

Date-based contract version, echoed back on the same header. Omit for the default (2026-07); send unstable for the in-development surface. An unrecognized value is rejected with 400 unsupported_api_version.

Path Parameters

slug
string
required

Context slug or UUID.

path
string
required

Relative path within the tree. Matches greedily, so it may contain /.

Query Parameters

offset
integer<int64>

Where the page starts. Source and knowledge listings echo it rather than applying it, since they return the whole directory in one page.

limit
integer<int64>

Maximum entries in the page. Source and knowledge listings echo it rather than applying it, since they return the whole directory in one page.

Response

Directory listing

One page of a source or knowledge directory. A listing returns a single page, so offset is 0 and next_offset is null; limit echoes the request rather than being applied.

entries
object[]
required

The directory's immediate children.

total
integer<int64>
required

Entries in this directory.

offset
integer<int64>
required

Echoes the request.

limit
integer<int64>
required

Echoes the request.

next_offset
integer<int64> | null

Always null — a listing returns one page.