# Sentry

This guide walks through adding Sentry as a provider in DuploCloud, configuring credentials, creating a scope, and querying Sentry data through the AI agent.

***

## Step 1 — Navigate to the Observability Providers

Go to **AI Admin** → **Providers** → **IT**, then click the **Observability** tab. This lists all observability providers connected to your account.

![Observability providers list](/files/vw6Lkq4xZYnMOPqTQqAa)

***

## Step 2 — Add a New Provider

Click **+ Add** and fill in the provider details:

* **Name** — a name to identify this provider
* **Type** — select **Sentry**
* **Account ID** — your Sentry organisation slug (the short identifier for your org, visible in your Sentry URL: `sentry.io/organizations/<org-slug>/`)

![Add Provider form](/files/k5u1tWxOJHL6zQsPjRba)

Click **Create Provider**. The new provider appears in the Observability list.

![Sentry added to providers list](/files/Cn2kivrMADsxNzR8VZsP)

***

## Step 3 — Add Credentials

The new provider opens on the **Credentials** tab. Click **+ Add** to add a credential.

![Sentry provider Credentials tab](/files/OkH09cpcZbnWEPMazkpV)

Fill in the credential fields:

* **API\_KEY** — your Sentry authentication token
* **org\_slug** — your Sentry organisation slug
* **Org\_Id** — your Sentry organisation ID
* **base\_url** — the Sentry API base URL (e.g. `https://sentry.io`)

> **Where to find these values:** Create an authentication token in Sentry under **Settings → Developer Settings → Auth Tokens**. Your organisation slug and ID are visible in Sentry under **Settings → General Settings**. The base URL is `https://sentry.io` unless you are on a self-hosted instance.

![Add Credential form — API key and org fields](/files/9EkPoXfxyKfPYt19QuFt)

![Add Credential form — org slug, Org ID, and base URL](/files/fblaGedykO2tt99gO2YT)

Click **Create** to save the credential.

***

## Step 4 — Add a Scope

Switch to the **Scope** tab and click **+ Add**. Fill in:

* **Name** — a label for this scope
* **Credential** — select the credential you just created
* **Description** — optional context for the agent

![Add Scope form](/files/yX7KFUE2lnjmaq5voZvu)

Click **Create**.

***

## Step 5 — Use Sentry in a Ticket

Go to **AI DevOps** → **HelpDesk** → **Add Ticket**. Select **generic-agent** as the agent and choose your Sentry scope from the scope dropdown.

![Ticket with Sentry scope selected](/files/N0KCHOVB7QL1B3er9QrP)

Enter your request and click **Create Ticket**.

***

## Step 6 — Agent Queries Sentry

The agent connects to Sentry using the scope credentials and processes the request.

![Agent processing the Sentry request](/files/asbJhPGOp2AGVK29hQV8)

The response includes uptime monitor status, alert conditions, recent issues, and a plain-language summary.

![Sentry results — uptime monitors and alert status](/files/toIZlX47ZXQUu9Qb0L88)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/getting-started/integrating-providers/sentry.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
