Skip to main content
GET
Knowledge file/dir/size counts

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.

Response

Counts

Counts over a whole tree.

file_count
integer<int64>
required

Files in the tree.

dir_count
integer<int64>
required

Directories in the tree. Counts the ancestor prefixes of the stored objects, so a store with no standalone directories still reports one per level that holds a file.

total_size
integer<int64>
required

Summed byte size of every file.