v5
latestOpenAPI 3.1.02026-08-025631,1012.8 MBAnalytics
Analytics - Namespaces
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"
get/v1/analytics/namespaces/queries/slow
Query parameters
daysinteger
Days of history to analyze
Days of history to analyze
latency_threshold_msnumber
Latency threshold in ms
Latency threshold in ms
limitinteger
Maximum queries to return
Maximum queries to return
Response
Successful Response