> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/o/opsgenie.md).

# Opsgenie

Opsgenie is an alerting and on-call management service. OctoXLabs reads its users to add them to the inventory.

## Use cases

* List Opsgenie users that OctoXLabs has collected.

```
Adapters = opsgenie
```

## Before you begin

### Network

| Source              | Destination                                             | Port | Protocol |
| ------------------- | ------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.opsgenie.com (or your regional Opsgenie API domain) | 443  | HTTPS    |

### Required permissions

The API key needs access rights that allow listing users. The sources do not name the exact right. Not verified.

## Create credentials in Opsgenie

{% stepper %}
{% step %}

### Open API key management

In Opsgenie go to **Settings > App Settings > API Key Management**.
{% endstep %}

{% step %}

### Add a key

Click **Add New API Key**.
{% endstep %}

{% step %}

### Name it and set access rights

Enter a name and choose the access rights for the key. You can regenerate the key before saving.
{% endstep %}

{% step %}

### Save

Click **Add API Key** and copy the key.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default          | Description                                                |
| --------- | -------- | ------- | ---------------- | ---------------------------------------------------------- |
| Domain    | Yes      | String  | api.opsgenie.com | Base domain of the Opsgenie API.                           |
| API Key   | Yes      | String  |                  | Opsgenie API key, sent as `Authorization: GenieKey <key>`. |
| Timeout   | No       | Integer | 30               | Seconds to wait for API responses.                         |

## Troubleshooting

| Error message | Cause | Fix |
| ------------- | ----- | --- |

## Change history

{% hint style="info" %}
Available starting from version 5.0.0.
{% endhint %}
