Get Namespace Stats
Returns document, bucket, collection, and object counts for a single namespace. Use this instead of relying on counts in the list endpoint.
Authorizations
Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.
Path Parameters
Either the namespace name or namespace ID
"my_namespace"
"ns_1234567890"
Response
Successful Response
Per-namespace statistics (counts) returned by the stats endpoint.
Namespace identifier
Total number of documents in this namespace
Total number of buckets in this namespace
Total number of collections in this namespace
Total number of objects across all buckets in this namespace

