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

# Adding Runscope as an alert source

> Page the right people when a Runscope API test fails, and resolve the alert when it passes again.

Runscope runs scheduled tests against your APIs. Connect it to incident.io and every failing
test run becomes an incident.io alert, so you can route it to a team, escalate to whoever is on
call, and open an incident when one matters.

| | |
| - | - |
| **Plans** | All plans |
| **Connects with** | An alert source. Runscope sends a webhook to incident.io after each test run |
| **What you get** | [Alerts](https://docs.incident.io/alerts/getting-started.md) and [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md) to route, escalate and declare incidents from |

## Step 1: create the alert source

1. Go to [Alerts](https://app.incident.io/~/on-call/alert-routes/sources) in your incident.io dashboard
   and select the **Sources** tab.
2. Press **Create source**, search for **Runscope**, and continue.
3. Give it a name.

The setup page shows a **Webhook URL** and an **Authorization Header** to paste into Runscope.
Keep it open for the next step.

## Step 2: connect Runscope

In the settings of each Runscope test you want to alert on:

1. Under **Integrations**, add a new **Webhook** integration and paste the **Webhook URL** from
   incident.io into the **URL** field.
2. Add an **Authorization** header with the value from incident.io. It starts with `Bearer`.
3. Save your changes and enable the integration.

incident.io rejects requests without a valid `Authorization` header, so check it's saved on
every test you connect.

Refer to [Runscope's webhook documentation](https://help.blazemeter.com/docs/guide/api-monitoring-advanced-webhooks.html)
for details of their integration UI.

## How alerts behave

* **Title and description.** The alert title is the test name, and the alert links back to the
  test run in Runscope.
* **Deduplication.** Repeat failures of the same test update one alert.
* **Resolution.** A `fail` run fires the alert and a `pass` run resolves it. Other results, such
  as `canceled`, don't change it.
* **Attributes.** Use the test name, bucket, environment or initial variables (such as
  `initial_variables.team`) to set [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md), for
  example to map a bucket to a team.

## Step 3: check it works

Run a test that fails. A passing run won't create an alert. The alert should appear on the alert
source page in incident.io within a few seconds.

If nothing arrives, check **Recent requests** on that page. Every request Runscope sent is listed
there, including any that were rejected, with the reason.

***

Can't find the alert source you are looking for? Head to our
[integrations page](https://incident.io/integrations) or message us at
[support@incident.io](mailto:support@incident.io).
