Skip to main content
GET
Get Namespace Summary

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 header returns 403; an invalid or revoked key returns 401.

X-Namespace
string
header
required

Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.

Query Parameters

days
integer
default:30

Days of history to analyze

Required range: 1 <= x <= 90

Response

Successful Response

Comprehensive namespace analytics summary.

namespace_id
string
required

Namespace ID analyzed

time_range_days
integer
required

Number of days analyzed

summary
Summary · object
required

Summary statistics (total_fields_analyzed, high_priority_indexes, etc.)

recommendations
IndexRecommendation · object[]
required

Top index recommendations

most_queried_fields
FieldQueryMetrics · object[]
required

Most frequently queried fields

slowest_fields
FieldPerformanceMetrics · object[]
required

Fields with highest latency

compound_indexes
CompoundIndexPattern · object[]
required

Compound index opportunities