Skip to main content
GET
/
v1
/
namespaces
/
{namespace_identifier}
/
stats
Get Namespace Stats
curl --request GET \
  --url https://api.mixpeek.com/v1/namespaces/{namespace_identifier}/stats \
  --header 'Authorization: Bearer <token>'
{
  "namespace_id": "<string>",
  "document_count": 0,
  "bucket_count": 0,
  "collection_count": 0,
  "object_count": 0
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace_identifier
string
required

Either the namespace name or namespace ID

Examples:

"my_namespace"

"ns_1234567890"

Response

Successful Response

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

namespace_id
string
required

Namespace identifier

document_count
integer
default:0

Total number of documents in this namespace

bucket_count
integer
default:0

Total number of buckets in this namespace

collection_count
integer
default:0

Total number of collections in this namespace

object_count
integer
default:0

Total number of objects across all buckets in this namespace