Retrieve Event Counts for a Team

GET /api/0/teams/{organization_slug}/{team_slug}/stats/

Return a set of points representing a normalized timestamp and the number of events seen in the period.

Query ranges are limited to Sentry’s configured time-series resolutions.

Path Parameters:
  • organization_slug (string) – the slug of the organization.
  • team_slug (string) – the slug of the team.
Query Parameters:
  • stat (string) – the name of the stat to query ("received", "rejected")
  • since (timestamp) – a timestamp to set the start of the query in seconds since UNIX epoch.
  • until (timestamp) – a timestamp to set the end of the query in seconds since UNIX epoch.
  • resolution (string) – an explicit resolution to search for (eg: 10s). This should not be used unless you are familiar with Sentry’s internals as it’s restricted to pre-defined values.
Authentication:required
Method:GET
Path:/api/0/teams/{organization_slug}/{team_slug}/stats/

Example

GET /api/0/teams/the-interstellar-jurisdiction/powerful-abolitionist/stats/ HTTP/1.1
Authorization: Bearer {base64-encoded-key-here}
Host: sentry.io
HTTP/1.1 200 OK
Allow: GET, HEAD, OPTIONS
Content-Language: en
Content-Length: 2
Content-Type: application/json
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

[]