> For the complete documentation index, see [llms.txt](https://docs.pagerly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagerly.io/sre-ai-agent/data-sources/sentry.md).

# Sentry

## What the Agent Can Do

* List recent issues — errors, crashes, performance problems
* Get issue details — stack traces, affected users, frequency
* Search events by error message or transaction name

## Setup Instructions

1. Log into your **Sentry account**
2. Go to **Settings** > **Auth Tokens** (under Account)
3. Click **Create New Token**
4. Select these scopes: `project:read`, `issue:read`, `event:read` and `org:read`
5. Click **Create Token** and copy it

## Required Credentials

| Field          | Description                        | Example      |
| -------------- | ---------------------------------- | ------------ |
| **Auth Token** | Sentry auth token with read scopes | `sntrys_...` |

## Context Prompt Tips

> *"Our main project is api-backend. Critical errors are tagged with level=fatal. We use the production environment."*

## Docs

* [Sentry API](https://docs.sentry.io/api/)
