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

# Opsgenie

> Opsgenie is a modern incident management platform that ensures critical incidents are never missed, and actions are taken by the right people in the shortest possible time. Opsgenie receives alerts from your monitoring systems and custom applications and categorizes each alert based on importance and timing.

## Creating an Opsgenie connection

To create the connection you need:

* An API key. Opsgenie has two types of API keys:

  * [Team Key](#team-key)
  * [User API Key](#user-api-key)

* An API address.

### Obtaining the credentials

#### Team Key

1. Go to [Opsgenie](http://app.eu.opsgenie.com/teams/list).

2. Click **Add team**.

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/Untitled.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=378940e1cb53c312da509fd4b809f89e" alt="Untitled" width="1749" height="793" data-path="img/OpsGenie/Untitled.png" />

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/Untitled1.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=8ac4416510bd1c1824afedeb22f48b58" alt="Untitled" width="598" height="484" data-path="img/OpsGenie/Untitled1.png" />

3. Click **Integrations** > **Add integrations**.

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/Untitled2.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=d2eb199582a7da50af487ee669e2e809" alt="Untitled" width="1336" height="715" data-path="img/OpsGenie/Untitled2.png" />

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/Untitled3.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=8a85685d25af3ead95f3166f17ef0ae2" alt="Untitled" width="1331" height="787" data-path="img/OpsGenie/Untitled3.png" />

4. Copy the token.

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/Untitled4.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=cc95d380ae11d50a592c37024ead49c3" alt="Untitled" width="1178" height="723" data-path="img/OpsGenie/Untitled4.png" />

5. Click **Save integration**.

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/Untitled5.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=1fad70fc94e025b8f09e0e6e2ac5bd56" alt="Untitled" width="1314" height="566" data-path="img/OpsGenie/Untitled5.png" />

#### User API key

This type of API key is needed for the ListUsers, CreateUser and DeleteUser actions.

1. Go to [Opsgenie](https://app.eu.opsgenie.com/settings/user/profile).

2. Click **API key management**.

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/APIUntitled.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=355c3da9237da6a00fe2d360000ad494" alt="Untitled" width="2559" height="1155" data-path="img/OpsGenie/APIUntitled.png" />

3. Click **Add new API key**.

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/APIUntitled1.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=376ead6d9f61a8ce98d0ab4f1f648c66" alt="Untitled" width="1232" height="206" data-path="img/OpsGenie/APIUntitled1.png" />

4. Name your new API key and select its permissions. Click **Add API key**.

   <img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/OpsGenie/APIUntitled2.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=633f3f606ecdbfd28239bfdb333a3b80" alt="Untitled" width="798" height="439" data-path="img/OpsGenie/APIUntitled2.png" />

#### API address

The API domains for Opsgenie:

* `https://api.opsgenie.com`
* `https://api.eu.opsgenie.com` (If using an EU instance of Opsgenie)

### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.

2. Select the **Opsgenie** icon. A dialog box with name of the connection and connection methods appears.

3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.

4. Select **Token** as the method to make the connection.

5. Fill in the parameters:

   * The API token
   * The API address

6. (Optional) Click **Test Connection** to test it.

7. Click **Create connection**. The new connection appears on the **Connections** page.
