Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

List the source file tree under a path

One directory of the source tree.

GET /contexts/{slug}/source/list/{path}

  • slug (path, string, required) — Context slug or UUID.
  • path (path, string, required) — Relative path within the tree. Matches greedily, so it may contain /.
  • offset (query, integer) — Where the page starts. Source and knowledge listings echo it rather than applying it, since they return the whole directory in one page.
  • limit (query, integer) — Maximum entries in the page. Source and knowledge listings echo it rather than applying it, since they return the whole directory in one page.
  • X-Pinecone-Api-Version (header, string) — 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.
  • 200 — Directory listing
  • 404 — Not found
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu