Get Slow Queries
Get slow queries and their filter patterns.
Identifies queries exceeding a latency threshold and shows which metadata fields they’re filtering on, helping pinpoint optimization opportunities.
Use Cases:
- Troubleshoot slow queries
- Identify unindexed fields causing slowdowns
- Debug performance issues
- Optimize query patterns
Response Includes:
- Query details (retriever, inputs, latency)
- Results count
- Metadata fields being filtered
- Full query context
Example:
curl -X GET "https://api.mixpeek.com/v1/analytics/namespaces/queries/slow?latency_threshold_ms=1000" \
-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 <= 90Latency threshold in ms
100 <= x <= 10000Maximum queries to return
1 <= x <= 500Response
Successful Response
Response for slow queries endpoint.

