Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

Knowledge file/dir/size counts

File, directory, and byte counts over the curated knowledge tree.

GET /contexts/{slug}/knowledge/stats

cURL
curl --request GET \
  --url https://{host}/api/contexts/{slug}/knowledge/stats \
  --header 'Authorization: Bearer <token>'
200
{
  "file_count": 123,
  "dir_count": 123,
  "total_size": 123
}
  • Authorization (header, string, required) — Bearer authentication header of the form Bearer <token>.
  • slug (path, string, required) — Context slug or UUID.
  • 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 — Counts
  • 404 — Not found
Suggest an edit

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

Export
Documentation menu