# Integrate Applications Manager with OpsGenie Integrating OpsGenie with Applications Manager brings a powerful synergy to your IT operations and event management strategy. This enables advanced alerting capabilities, ensuring that critical issues are detected and communicated promptly. By combining these strengths, it helps organizations enhance operational efficiency, improve event resolution, and maintain high service reliability. Applications Manager can be integrated with OpsGenie using the **custom integration** option. - [Configuring OpsGenie](https://www.manageengine.com/products/applications_manager/help/integrating-opsgenie.html#act-int) - **Configuring Applications Manager** - [To Add an Event](https://www.manageengine.com/products/applications_manager/help/integrating-opsgenie.html#add-in) - [To Add Notes to an Event](https://www.manageengine.com/products/applications_manager/help/integrating-opsgenie.html#notes) - [To close an Event](https://www.manageengine.com/products/applications_manager/help/integrating-opsgenie.html#close-event) ## Configuring OpsGenie 1. **Login to OpsGenie**: To activate integration in OpsGenie, [login](https://www.atlassian.com/software/opsgenie/migration) here. ![opsgenie-login](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-01.png) 2. **Create a Team**: Navigate to **Teams > Add Team** to create a new team. Once the team is created, you will be redirected to the team’s page. ![opsgenie-team](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-02.png) 3. **Add an Integration**: Click on **Integrations > Add Integration** to enable a new integration. A list of available integrations will be displayed. ![opsgenie-integration](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-03.png) 4. **Select API Integration**: Choose the "API" integration to perform REST operations. Both free and paid options are available—select based on your requirements. Copy the **API key**. ![opsgenie-api](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-04.png) 5. **Enable Access**: Verify if access is enabled. If not, click **Edit** and enable access. Once created, you will receive integration settings, including the API key and other configuration details. ![opsgenie-access](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-05.png) 6. **Activate the Integration**: Click **Turn on Integration** to activate it. ![opsgenie-activation](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-06.png) 7. Click **Save**. ## Configuring Applications Manager ### a. Add an Event in Applications Manager - In **Applications Manager**, navigate to **Settings > Integrations > Custom Integration**. - Enter the **Integration Name** and add a **Decscription**. - Set up integration parameters: - **Integration Type:** Event Management - **API Endpoint:** https://api.opsgenie.com/v2/alerts - **Method:** POST - **Headers:** Authorization: GenieKey eb2*****************************f56 {copied API Key from opsgenie} - **Payload Type:** JSON - **Data Type:** Raw - **Body Content:** ```json { "message": "$message", "details": { "displayname": "$displayName", "Severity": "$stringseverity", "Category": "$category" } } ``` ![opsgenie-create-event](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-07.png) - Click **Test Configuration** to check the configuration. Once successful, select **"Manage Events"** to fetch the event ID. You will get a `request_id`, which can be used to acknowledge and close the particular event on the OpsGenie side. ### b. Add Notes to an Event in Applications Manager - **API:** https://api.opsgenie.com/v2/alerts/$requestId/notes - **Method:** POST - **Headers:** Authorization:GenieKey eb2*****************************f56 {copied API Key from opsgenie} - **Payload Type:** JSON - **Data Type:** Raw - **Body Content:** ```json { "message": "$message", "details": { "displayname": "$displayName", "Severity": "$stringseverity", "Category": "$category" } } ``` ![opsgenie-update-event](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-08.png) ### c. Close an Event in Applications Manager - **API:** https://api.opsgenie.com/v2/alerts/$requestId/close - **Method:** POST - **Headers:** Authorization:GenieKey eb2*****************************f56 {copied API Key from opsgenie} - **Payload Type:** JSON - **Data Type:** Raw - **Body Content:** ```json { "message": "$message", "details": { "displayname": "$displayName", "Severity": "$stringseverity", "Category": "$category" } } ``` ![opsgenie-close-event](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-09.png) - Click **Save** to finalize the configuration. **Note:** Refer to the [OpsGenie Alert API documentation](https://docs.opsgenie.com/docs/alert-api) to check for Alerts API parameters. Now that Applications Manager has been integrated with OpsGenie, we have to associate actions for the same. [Learn how to associate Custom integration actions](https://www.manageengine.com/products/applications_manager/help/custom-integrations.html#apm-action) ![notification-profile](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrate-whatsapp-23.png) ![notification-profile](https://cdn.manageengine.com/sites/meweb/images/applications_manager/help/integrating-opsgenie-10.png) ### Verifying the Integration Trigger a real-time alert in Applications Manager. Then, log in to your OpsGenie interface to verify the alert has been logged as an event.