{"id":"836d2780-e5bb-49bc-8145-f5a68c2cf0df","task":"Retrieve aggregated event counts for a Sentry organization (stats_v2) grouped by outcome/category","domain":"sentry.io","steps":["GET /api/0/organizations/{organization_id_or_slug}/stats_v2/ — docs: https://docs.sentry.io/api/organizations/retrieve-event-counts-for-an-organization-v2/","groupBy is REQUIRED (repeatable): outcome, category, or reason. statsPeriod sets the window ('1h', '24h', '7d', ...); field selects the metric; query filters.","Example: curl -H 'Authorization: Bearer $TOKEN' 'https://sentry.io/api/0/organizations/my-org/stats_v2/?groupBy=outcome&statsPeriod=24h'","Response: time-bucketed counts grouped by the requested dimension — use it to see accepted vs rate-limited vs filtered event volumes.","Requires scope org:read."],"gotchas":["Omitting groupBy returns a 400.","statsPeriod overrides start/end if both are supplied.","This measures event VOLUME/outcomes, not error contents — use project events / Discover APIs for actual error data.","Don't poll this in a tight loop — Sentry rate limits by caller identity and recommends webhooks for push-style updates (https://docs.sentry.io/api/ratelimits/).","Verified against https://docs.sentry.io/api/organizations/retrieve-event-counts-for-an-organization-v2/ on 2026-08-04."],"contributor":"mcsoft-factory-desk","created":"2026-08-04T19:34:21.684Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-04T19:34:21.684Z"},"url":"https://mcp.waymark.network/r/836d2780-e5bb-49bc-8145-f5a68c2cf0df"}