> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Sentry

> Error and performance monitoring: issues, their events and stack traces, explore queries over errors, logs and spans, event volume stats, projects and releases.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/sentry.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=2b5766bf4ab92752eac491c35c03c154)

[Web Catalog · Observability](https://docs.webrouter.net/data-apis.md?category=observability)

Needs&#x20;

`SENTRY_AUTH_TOKEN`

Endpoints

8

Auth

Key in header

[Vendor docs](https://docs.sentry.io/api/)

&#x20;·&#x20;

[Pricing](https://sentry.io/pricing/)

## Setup

| Variable | | What it is |
| - | - | - |
| `SENTRY_AUTH_TOKEN` | required | A Sentry auth token: an organization token, a user token, or an internal integration's token, with the read scopes the calls need (org:read, project:read, event:read). |
| `SENTRY_API_HOST` | optional | sentry.io, or the organization's data region: us.sentry.io or de.sentry.io. Self-hosted Sentry is not covered. Default `sentry.io`. One of `sentry.io`, `us.sentry.io`, `de.sentry.io`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every path takes the organization slug; paths end with a slash.
* Paging is by the Link response header: follow the rel="next" cursor while it says results="true". A next cursor is always present, even on the last page.
* Rate limits are per endpoint and per caller; a 429 means wait, and X-Sentry-Rate-Limit-\* headers report the window.
* Issue lists default to query=is:unresolved; send an empty query for every issue.

## Endpoints

GET

List projects

The organization's projects.

[Open](#sentry-projects-list)

GET

List issues

Issues matching a search, sorted by last seen by default.

[Open](#sentry-issues-list)

GET

Get an issue

One issue with stats, counts, first and last seen.

[Open](#sentry-issues-get)

GET

List an issue's events

Events grouped into one issue.

[Open](#sentry-issues-events-list)

GET

Get an issue event

One event of an issue with stack trace, tags and context; latest, oldest or recommended.

[Open](#sentry-issues-events-get)

GET

Query errors, logs or spans as a table

Fields and aggregates over a dataset (errors, logs, spans...), filtered by Sentry search.

[Open](#sentry-explore-events)

GET

Get event volume

Counts of accepted, filtered and rate-limited events over time, grouped by outcome, category, reason or project.

[Open](#sentry-stats)

GET

List releases

Releases, most recent first.

[Open](#sentry-releases-list)

### List projects

GET

`/organizations/{organization_id_or_slug}/projects/`

`sentry.projects.list`

The organization's projects.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>

    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter by name or slug.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Rows, default and max 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the Link header of the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/organizations/list-an-organizations-projects/)

```python Python theme={null}
router.call_data_api("sentry.projects.list", {'organization_id_or_slug': 'acme'})
```

```text MCP theme={null}
call_data_api(endpoint="sentry.projects.list", params={"organization_id_or_slug": "acme"})
```

### List issues

GET

`/organizations/{organization_id_or_slug}/issues/`

`sentry.issues.list`

Issues matching a search, sorted by last seen by default.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>

    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search, e.g. 'is:unresolved level:error'; default is:unresolved, empty for all.
      </td>
    </tr>

    <tr><td>`sort`</td><td>string</td><td>query</td><td>Order. One of `date`, `freq`, `inbox`, `new`, `recommended`, `trends`, `user`</td></tr>

    <tr>
      <td>
        `project`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Project ids or slugs; -1 for all accessible.
      </td>
    </tr>

    <tr>
      <td>
        `environment`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Environment names.
      </td>
    </tr>

    <tr>
      <td>
        `statsPeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Relative range like 24h, 14d; overrides start and end.
      </td>
    </tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 start.
      </td>
    </tr>

    <tr>
      <td>
        `end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 end.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Max 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the Link header.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/events/list-an-organizations-issues/) · Same job: [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-incidents-list), [Oh Dear](https://docs.webrouter.net/data-apis/ohdear.md#ohdear-downtime-list)

```python Python theme={null}
router.call_data_api("sentry.issues.list", {'organization_id_or_slug': 'acme'})
```

```text MCP theme={null}
call_data_api(endpoint="sentry.issues.list", params={"organization_id_or_slug": "acme"})
```

### Get an issue

GET

`/organizations/{organization_id_or_slug}/issues/{issue_id}/`

`sentry.issues.get`

One issue with stats, counts, first and last seen.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>

    <tr>
      <td>
        `issue_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Issue id (numeric, from issues.list).
      </td>
    </tr>

    <tr>
      <td>
        `environment`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Environment names.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/events/retrieve-an-issue/)

### List an issue's events

GET

`/organizations/{organization_id_or_slug}/issues/{issue_id}/events/`

`sentry.issues.events.list`

Events grouped into one issue.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>

    <tr>
      <td>
        `issue_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Issue id (numeric, from issues.list).
      </td>
    </tr>

    <tr>
      <td>
        `full`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include full bodies with stack traces; caps the page at 10.
      </td>
    </tr>

    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Event search.
      </td>
    </tr>

    <tr>
      <td>
        `statsPeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Relative range like 24h, 14d; overrides start and end.
      </td>
    </tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 start.
      </td>
    </tr>

    <tr>
      <td>
        `end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 end.
      </td>
    </tr>

    <tr>
      <td>
        `environment`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Environment names.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Rows, default and max 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the Link header of the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/events/list-an-issues-events/)

### Get an issue event

GET

`/organizations/{organization_id_or_slug}/issues/{issue_id}/events/{event_id}/`

`sentry.issues.events.get`

One event of an issue with stack trace, tags and context; latest, oldest or recommended.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>

    <tr>
      <td>
        `issue_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Issue id (numeric, from issues.list).
      </td>
    </tr>

    <tr><td>`event_id` required</td><td>string</td><td>path</td><td>An event id, or latest, oldest or recommended. Example `latest`</td></tr>
    <tr><td>`llmFormat`</td><td>string</td><td>query</td><td>Adds a 'formatted' field rendering the event for an LLM. One of `json`, `markdown`, `xml`</td></tr>

    <tr>
      <td>
        `environment`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Environment names.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/events/retrieve-an-issue-event/)

### Query errors, logs or spans as a table

GET

`/organizations/{organization_id_or_slug}/events/`

`sentry.explore.events`

Fields and aggregates over a dataset (errors, logs, spans...), filtered by Sentry search.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>
    <tr><td>`dataset` required</td><td>string</td><td>query</td><td>Dataset. One of `errors`, `logs`, `profile_functions`, `spans`, `tracemetrics`, `uptime_results`</td></tr>

    <tr>
      <td>
        `field`

        required
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Up to 20 fields or functions, e.g. title, count(), p95(span.duration).
      </td>
    </tr>

    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Sentry search filter.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A requested field; prefix - for descending.
      </td>
    </tr>

    <tr>
      <td>
        `project`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Project ids or slugs; -1 for all accessible.
      </td>
    </tr>

    <tr>
      <td>
        `environment`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Environment names.
      </td>
    </tr>

    <tr>
      <td>
        `statsPeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Relative range like 24h, 14d; overrides start and end.
      </td>
    </tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 start.
      </td>
    </tr>

    <tr>
      <td>
        `end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 end.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Rows, default and max 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the Link header of the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/explore/query-explore-events-in-table-format/) · Same job: [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-logs-search), [Microsoft Graph (Microsoft 365)](https://docs.webrouter.net/data-apis/microsoft-graph.md#microsoft-graph-signins-list), [Resend](https://docs.webrouter.net/data-apis/resend.md#resend-logs-list), [Supabase](https://docs.webrouter.net/data-apis/supabase.md#supabase-logs-query), [Vercel](https://docs.webrouter.net/data-apis/vercel.md#vercel-deployments-events)

> [!NOTE]
>
> * For tables, not bulk export.

### Get event volume

GET

`/organizations/{organization_id_or_slug}/stats_v2/`

`sentry.stats`

Counts of accepted, filtered and rate-limited events over time, grouped by outcome, category, reason or project.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>
    <tr><td>`field` required</td><td>string</td><td>query</td><td>sum(quantity) (events; bytes for attachments) or sum(times\_seen). One of `sum(quantity)`, `sum(times_seen)`</td></tr>

    <tr>
      <td>
        `groupBy`

        required
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        outcome, category, reason and/or project.
      </td>
    </tr>

    <tr>
      <td>
        `statsPeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Range like 1d or 30d.
      </td>
    </tr>

    <tr>
      <td>
        `interval`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Resolution, default and minimum 1h.
      </td>
    </tr>

    <tr>
      <td>
        `start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 or epoch seconds.
      </td>
    </tr>

    <tr>
      <td>
        `end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO-8601 or epoch seconds.
      </td>
    </tr>

    <tr>
      <td>
        `project`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Project ids; -1 for all.
      </td>
    </tr>

    <tr>
      <td>
        `category`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Data category, e.g. error, transaction, replay.
      </td>
    </tr>

    <tr><td>`outcome`</td><td>string</td><td>query</td><td>Outcome. One of `accepted`, `filtered`, `rate_limited`, `invalid`, `abuse`, `client_discard`, `cardinality_limited`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/organizations/retrieve-event-counts-for-an-organization-v2/)

### List releases

GET

`/organizations/{organization_id_or_slug}/releases/`

`sentry.releases.list`

Releases, most recent first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`organization_id_or_slug` required</td><td>string</td><td>path</td><td>Organization slug or id. Example `acme`</td></tr>

    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Substring of the version.
      </td>
    </tr>

    <tr>
      <td>
        `project`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Project ids or slugs; -1 for all accessible.
      </td>
    </tr>

    <tr>
      <td>
        `environment`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Environment names.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Rows, default and max 100.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Cursor from the Link header of the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sentry.io/api/releases/list-an-organizations-releases/)

```python Python theme={null}
router.call_data_api("sentry.releases.list", {'organization_id_or_slug': 'acme'})
```

```text MCP theme={null}
call_data_api(endpoint="sentry.releases.list", params={"organization_id_or_slug": "acme"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.