Skip to main content
GET
Get Namespace Stats

Authorizations

Authorization
string
header
required

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, malformed, unknown, revoked, inactive or expired key returns 401; a key without the permission, scope or plan an operation needs returns 403.

Path Parameters

namespace_identifier
string
required

Either the namespace name or namespace ID

Examples:

"my_namespace"

"ns_1234567890"

Query Parameters

include_readiness
boolean
default:false

Also return readiness: whether the namespace can answer a search yet and the next step, with the concepts an agent plans a query from. Reads the namespace's collections, newest batches, retrievers, taxonomies and a sample of 50 documents per collection, so leave it off when you only need counts.

Response

Successful Response

Per-namespace statistics (counts) returned by the stats endpoint.

namespace_id
string
required

Namespace identifier

document_count
integer | null
default:0

Total number of documents in this namespace. With document_count_complete false the count did not finish: this is null when nothing was counted, or a lower bound (the documents counted before it stopped). It is never 0 for a count that did not finish, so 0 always means an empty namespace.

document_count_complete
boolean
default:true

Whether document_count finished. False when a collection's or the vector store's count timed out or failed, in which case document_count is null or a lower bound; ask again shortly.

bucket_count
integer
default:0

Total number of buckets in this namespace

collection_count
integer
default:0

Number of this namespace's own collections. The platform's bookkeeping collections (names starting , mxp or mvs_bucket_), which the collections list also shows, are not counted.

object_count
integer
default:0

Total number of objects across all buckets in this namespace

readiness
NamespaceReadiness · object | null

Whether the namespace can answer a search yet, each collection's and retriever's state, and the one next step. Present only with include_readiness=true.