Overview
The Analytics API provides comprehensive insights into your Supermemory usage:- Usage Statistics: Track API calls by type, hourly trends, and per-API key breakdown
- Error Monitoring: Identify top error types and patterns
- Detailed Logs: Inspect stored request logs and compacted response data for debugging
- Performance Metrics: Monitor average response times and processing duration
Analytics data is available for your entire organization and can be filtered by time period.
Usage statistics
Get comprehensive usage statistics including hourly breakdowns and per-key metrics.Endpoint
GET /v3/analytics/usage
Parameters
Example request
Response schema
tokensUsed sums recorded finalTokens for the listed keys, including chat usage. It is not the billable ingestion-token meter, and ordinary memory request logs do not necessarily populate it.
Error monitoring
Track and analyze errors to identify issues and improve reliability.Endpoint
GET /v3/analytics/errors
Parameters
Same as usage endpoint - supportsfrom, to, period, page, and limit.
Example request
Response schema
Detailed logs
Inspect stored request logs for debugging. Response data is compacted: strings, arrays, fields, and nesting can be truncated. The ordinary request tracker skips HTTP402, 404, and 500 responses, so this is not a complete audit trail.
Endpoint
GET /v3/analytics/logs
Parameters
Usefrom, to, period, page, and limit as above. The current /logs handler filters by organization and time only; it does not apply type, statusCode, or keyId filters.