# OpsGenie

{% hint style="warning" %}
OpsGenie Notification Channel is getting an upgrade: meet [OpsGenie Connected App](/integrations/connected-apps/opsgenie-integration.md)
{% endhint %}

### Generate Opsgenie API Key

1. In Opsgenie, Go to **Settings → Integrations**.
2. Run a search and select “API”.
3. On the next screen, enter a name for the integration. (We will use it later when adding the integration to groundcover)
4. *Optional*: Select a team in **Assignee team** if you want a specific team to receive alerts from the integration.
5. Select **Continue**.\
   The integration is saved at this point.
6. Select **Turn on integration**.

{% hint style="info" %}
If you're using Opsgenie's **Free** or **Essentials** plan, you can add this integration from your team dashboard only. The **Integrations** page under **Settings** is not available in your plan.
{% endhint %}

{% hint style="info" %}
Make sure you have enabled "Allow Create and Update Access"
{% endhint %}

### Get Your API Key

1. In Opsgenie, Go to **Settings → Integrations**.
2. Click on your selected integration from the list.
3. Copy API Key from the Integration settings panel.

<figure><img src="/files/4ChOlU404PRCr3IcVn0y" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Make sure Status is ON
{% endhint %}

### Create New Integration In groundcover

1. In groundcover, Go to **Settings → Integrations**.
2. Click on Opsgenie integration

   <figure><img src="/files/rTAjQ5LE0t3lc7IUrrP8" alt=""><figcaption><p>Opsgenie integration card</p></figcaption></figure>
3. Fill the form:
   1. Integration name in groundcover
   2. Original name of the integration in Opsgenie
   3. API Key
4. **Save**

![](/files/iX31lUegldqqE34UlNUQ)

### Workflow Example

You can see a detailed workflow example to use with your integration, [here](/use-groundcover/workflows/integration-examples.md#opsgenie-integration).


---

# 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.groundcover.com/integrations/workflow-integrations/opsgenie-integration.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.
