*Version: 1.0 | Last Updated: 2025-02-25*
## Overview
- **Integration Name:** OpsGenie
- **Purpose:** Integrate OpsGenie with Moovingon AI, enabling users to send OpsGenie notifications
- **Audience:** Support team, TAM
- **Prerequisites:**
- A valid Splunk account
- MoovingON AI account access with integration permissions
---
## Table of Contents
- [[#Setup Instructions]]
- [[#Configuration]]
- [[#Testing the Integration]]
- [[#FAQs]]
- [[#Related Links]]
---
## Setup Instructions
Webhook should be created in the MoovingON AI platform to send alerts to OpsGenie.
1. **Step 1:** Webhook should be created in settings
****
2. **Step 2:** Click on the **Plus** symbol in the upper bar:
****
3. **Step 3:** On the right side of the screen, a window will appear to create the webhook.
The parameters:
- **Name**: Webhook's name
- **Method**: POST
- **Content-Type**: JSON
- **URL**: This is the URL used to open the alert in OpsGenie "https://api.opsgenie.com/v2/alerts"
- **Payload**: The alert details for the alert created in OpsGenie:
The full description about the payload can be found in this [link](https://docs.opsgenie.com/docs/alert-api#create-alert)
Here is an example payload, which was used in the screenshot:
{
"message": "An example alert message",
"description":"Every alert needs a description",
"responders":[
{"username":"
[email protected]", "type":"user"}
],
"visibleTo":[
{"username":"
[email protected]", "type":"user"}
],
"priority":"P1"
}
- Authorization: A header should be added by clicking "**Add Header**".
The value field should contain "GenieKey {APIKey}"
The {APIKey} should be replaced with the key extracted from OpsGenie.
****
---
## Configuration
- **API Keys/Secrets:**
Steps for extracting the API Key from the OpsGenie site:
1. **Step 1**: The Team should be created to implement the MoovingON AI integration:
Click on teams in the upper bar:
****
Click on **Add team**:
****
Team details:
****
2. Step 2: Create a new integration in the team settings:
****
Add new integration by clicking on "**Add integration**" and choosing **API**:
****
****
Here we can find the API key to set up the integration in MoovingON.AI
In the last step, we have to click on "**Turn on the integration**".
****
---
## Testing the Integration
- **Test Cases:**
By running the webhook on alert, we receive this response:
****
We can see that it's received in OpsGenie as well:
****
---
## FAQs
- **Q:** How do you extract an API Key?
**A:** It's explained in the [[#Configuration]] section
- **Q:** Which field can I add to the payload in Step 3 in Setup?
**A:** It's explained in the [[#Setup Instructions]]
---
## Related Links
- **External Resources:** [Creating Alert in OpsGenie](https://docs.opsgenie.com/docs/alert-api#create-alert), [Creating teams and integration in OpsGenie](https://support.atlassian.com/opsgenie/docs/set-up-an-integrated-tool/)