errors.groups
Identify and triage the most frequent or impactful bugs by retrieving deduplicated error groups with occurrence counts, unique affected users, and first/last seen timestamps for any time period.
Instructions
Errors deduplicated by server-computed fingerprint, with counts and first/last-seen timestamps. The triage view: which bugs are firing most often, affecting the most users, or showing up newly in the period.
Each group is one fingerprint (a bug). count is total occurrences in the period; users_affected is unique anonymous_ids that hit it; first_seen and last_seen show the time window the bug appeared in. sample_message and sample_type are pulled from one occurrence in the group — useful for the agent to surface a readable label.
Examples:
"what's broken right now" → period="today", sort_by="count"
"regressions that started this week" → period="7d", sort_by="first_seen"
"bugs hitting the most users" → sort_by="users_affected"
"what just stopped firing" → check last_seen against expected freshness
Limitations: only fingerprintable errors are grouped; events with neither message nor stack get a null fingerprint and are excluded from this view (they still show up in errors.list). Default sort is by count; pass sort_by to change. Default limit 50, max 200.
Pairs with: errors.list (drill into a fingerprint to see individual occurrences with full context); errors.timeline (chart the rate of one fingerprint to spot regressions or post-deploy regressions); traffic.compare (correlate a count spike with a deploy or campaign).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Target project ID (e.g. "proj_abc123"). Required when the credential has access to multiple projects. If omitted and only one project is accessible, that project is used automatically. Call `projects.list` to discover available project IDs. | |
| period | No | Time period. Use "today", "yesterday", "7d", "30d", "90d", or a custom range as "YYYY-MM-DD:YYYY-MM-DD" (e.g. "2026-01-01:2026-03-31"). Defaults to "30d". | |
| limit | No | Max rows to return (1-50). Defaults to 10. | |
| sort_by | No | Order groups by total occurrences (default), unique users affected, most recent occurrence, or earliest occurrence. Sort is always descending. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | ||
| sort_by | Yes | ||
| groups | Yes |