Return a Count of Replays

GET /api/0/organizations/{organization_id_or_slug}/replay-count/

Return a count of replays for the given issue or transaction id.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the resource belongs to.

Query Parameters:

end (string)

The end of the period of time for the query, expected in ISO-8601 format. For example 2001-12-14T12:34:56.7890.

environment (array(string))

The name of environments to filter by.

start (string)

The start of the period of time for the query, expected in ISO-8601 format. For example 2001-12-14T12:34:56.7890.

statsPeriod (string)

The period of time for the query, will override the start & end parameters, a number followed by one of:

  • d for days
  • h for hours
  • m for minutes
  • s for seconds
  • w for weeks

For example 24h, to mean query data starting from 24 hours ago to now.

project (array(integer))

The IDs of projects to filter by. -1 means all available projects. For example the following are valid parameters:

  • /?project=1234&project=56789
  • /?project=-1
query (string)

Filters results by using query syntax.

example: query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)

Scopes

<auth_token> requires one of the following scopes:
  • org:admin
  • org:read
  • org:write
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/replay-count/ \
 -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
{
  "1": 9,
  "2": 0,
  "5": 0,
  "9": 1,
  "10": 29
}