Knowledge file/dir/size counts
File, directory, and byte counts over the curated knowledge tree.
GET /contexts/{slug}/knowledge/stats
curl --request GET \
--url https://{host}/api/contexts/{slug}/knowledge/stats \
--header 'Authorization: Bearer <token>'{
"file_count": 123,
"dir_count": 123,
"total_size": 123
}Authorizations
Section titled “Authorizations”Authorization(header, string, required) — Bearer authentication header of the formBearer <token>.
Path Parameters
Section titled “Path Parameters”slug(path, string, required) — Context slug or UUID.
Headers
Section titled “Headers”X-Pinecone-Api-Version(header, string) — Date-based contract version, echoed back on the same header. Omit for the default (2026-07); sendunstablefor the in-development surface. An unrecognized value is rejected with400 unsupported_api_version.
Response
Section titled “Response”200— Counts404— Not found