GET /api/groups
Analytics API
GET /api/groups
Retrieve grouped errors with occurrence counts
GET
GET /api/groups
The GET
Use Case: Find the most impactful errors to fix first.
Use Case: Monitor active issues and recent deployments.
Use Case: Identify new bugs introduced recently.
Use Case: Prioritize critical errors over warnings.
Response: All individual error logs in that group.
/api/groups endpoint retrieves deduplicated error groups, showing unique errors with their occurrence counts and metadata.
Query Parameters
string
Filter groups by environment.Example:
/api/groups?environment=productionstring
Filter groups by application ID.Example:
/api/groups?appId=my-frontend-appstring
Filter by highest severity in the group.Values:
error, warning, infoExample: /api/groups?severity=errorstring
Filter groups with occurrences after this date (ISO 8601).Example:
/api/groups?startDate=2024-01-01T00:00:00Zstring
Filter groups with occurrences before this date (ISO 8601).Example:
/api/groups?endDate=2024-01-31T23:59:59Znumber
Filter groups with at least this many occurrences.Example:
/api/groups?minCount=10number
default:"1"
Page number for pagination (1-indexed).Example:
/api/groups?page=2number
default:"50"
Number of results per page (max: 100).Example:
/api/groups?limit=100string
default:"count"
Field to sort by.Values:
count, lastSeen, firstSeen, severityExample: /api/groups?sortBy=lastSeenstring
default:"desc"
Sort order.Values:
asc (ascending), desc (descending)Example: /api/groups?sortOrder=ascResponse Fields
array
Array of error group objects.
number
Total number of groups matching the query.
number
Current page number.
number
Results per page.
number
Total number of pages.
Example Requests
Example Response
Use Cases
Dashboard Overview
Display top error groups:Identify New Issues
Find groups that appeared recently:High-Impact Errors
Find errors affecting many users:Application Health
Compare error groups across apps:Filtering Examples
By Frequency
By Time
By Severity
Combined Filters
Sorting Options
By Count (Most Frequent)
By Last Seen (Most Recent)
By First Seen (Newest Issues)
By Severity
Getting Group Details
To get all occurrences of a specific group:Pagination
Navigate through large result sets:Performance Optimization
Use time filters
Use time filters
Filter by app or environment
Filter by app or environment
Use minCount to reduce results
Use minCount to reduce results
Limit page size appropriately
Limit page size appropriately
Client Implementation
TypeScript
React Hook
Exporting Group Data
Export groups for reporting:Monitoring Trends
Track how groups change over time:Related Endpoints
GET /api/logs
Get individual error logs by group
GET /api/stats
Get statistics including group counts
Error Grouping
Learn how error grouping works
Dashboard Features
View groups in the dashboard