Get Namespace Summary
Get comprehensive namespace optimization summary.
Provides a complete overview of namespace performance including:
- Top index recommendations
- Most queried fields
- Slowest fields
- Compound index opportunities
- Summary statistics
Use Cases:
- Get full optimization picture
- Regular performance reviews
- Database health checks
- Planning optimization work
Response Includes:
- Summary statistics (field counts, priority levels)
- Top 10 index recommendations
- Top 10 most queried fields
- Top 10 slowest fields
- Top 10 compound index opportunities
Recommended Workflow:
- Call this endpoint for overview
- Use specific endpoints for details
- Implement high-priority recommendations
- Monitor improvement over time
Example:
curl -X GET "https://api.mixpeek.com/v1/analytics/namespaces/summary?days=30" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Namespace: your-namespace"
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.
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 of history to analyze
1 <= x <= 90Response
Successful Response
Comprehensive namespace analytics summary.
Namespace ID analyzed
Number of days analyzed
Summary statistics (total_fields_analyzed, high_priority_indexes, etc.)
Top index recommendations
Most frequently queried fields
Fields with highest latency
Compound index opportunities

