The Notifications Webhook lets you share incidents with another application or service programmatically via a callback URL.
Webhooks are a programmatic way to send information to an Internet address when an event occurs in an application. In BigPanda, the Notifications Webhook allows you to send incident information to a callback URL when an incident is shared and when the shared incident is updated.
Configure webhooks to build custom integrations with messaging, ticketing, or other collaboration systems.
Key Features
- Enables custom integrations by sending high-level, correlated incidents from BigPanda to any Webhook receiver you configure.
- Sends incident data to an external URL via HTTP POST request.
- Supports custom authentication headers for data security.
- Supports AutoSharing, manual sharing, and sharing updates.
How It Works
A Notifications Webhook integration creates a sharing channel from BigPanda to a callback URL of your choosing. When an incident is shared via the channel, BigPanda sends an HTTP POST request to the callback URL. The data payload of the request is the Incident
object with the expanded representation of the Alert
objects it contains. The application or service that receives the request can then process the data according to any business logic it has configured for new shares from BigPanda. For example, if the callback URL is an API endpoint for a service desk application, you may configure the application to create a ticket for the team that handles incident escalations.
If a change occurs that triggers a sharing update for the incident, BigPanda sends another HTTP POST request to the callback URL, with the updated Incident
object and Alert
objects it contains. The application or service that receives the request can then process the data according to any business logic it has configured for updates to existing BigPanda shares. For example, if the callback URL is an API endpoint for a service desk application, you may configure the application to update the existing ticket for the shared incident.
You can use the Notifications webhook to build any number of custom collaboration integrations. As with other sharing channels, the same incident update can be shared through multiple webhook integrations.
Common Use Cases
The Notifications webhook is often used to integrate BigPanda with messaging, ticketing, or other collaboration systems. Some systems provide built-in API endpoints and scripting layers for receiving and transforming data according to custom business logic. Alternatively, you can build a custom API endpoint within your infrastructure or by using cloud services such as Amazon API Gateway and AWS Lambda.
Integrating Collaboration Systems With The Notifications Webhook
To build a custom integration with the Notifications webhook, you must configure the collaboration system to receive and use BigPanda incident data. Then, configure BigPanda to send the data.
Follow this general process to use the Notifications Webhook:
- Configure the API endpoint to receive the webhook. Be sure to configure security settings for authenticating requests, such as API keys or user account credentials. Consider configuring responses with status codes to aid in testing and troubleshooting.
- Set up the receiving system to use the data. Apply custom business logic, transform the data, and/or perform actions in the system with custom code or settings. As necessary, configure data storage, include logic for receiving multiple requests about the same incident, and/or configure the API endpoint to trigger any custom code when data is received.
- Configure the webhook settings in BigPanda. Create a sharing channel from BigPanda to the application or service. Provide the callback URL and authentication headers that BigPanda will use to send the incident data.
- Test the webhook.
- Configure environments and AutoShare rules to use the webhook sharing channel, as necessary.
Incidents API
You can use the Incidents API to build a bidirectional integration with a collaboration system.
For example, if you are building a webhook integration that creates a ticket in a service desk application, you may want to use the Incidents API to automatically resolve the BigPanda incident when the service desk ticket is closed.
Create an App Key
Create an app key in BigPanda.
Integration Specific
You'll need a separate app key for each integrated system.
Configure the Webhook
Configure the webhook receiver to accept BigPanda requests, if applicable. Then, use the form below to specify the callback URL and authentication details.
-
Enter the full Callback URL where BigPanda will send the request.
For example:
https://my-api-endpoint.com/events
-
(Optional) To add custom a HTTP header, click the plus and add a key-value pair. For example:
- Header key:
my-api-key
- Header value:
XIpjpJPLRN79LIsAa9TdA3XnxS4VfESv65NqqH8G
- Header key:
-
Repeat step 2 for each additional header you want to add to the request.
Note: Please complete Step 1: Create an App Key before configuring the webhook below.
Enable Callback Service
The callback service allows BigPanda to verify that an entity (ticket, page, message, etc) has been successfully created in the target system. This service is optional, but is highly recommended, as it will confirm that your integration is configured correctly and will prevent updates from being lost.
In order for the callback service to function properly, your API call must include all of the following data, including your unique API key. If you haven't already, create an API key here.
Endpoint: https://api.bigpanda.io/resources/v2.1/outbound/callback
Required headers:
Authorization: Bearer <USER API KEY>
Body:
{
"event_type": "incident#new",
"incident_id": "",
"app_key": ""
}
Response:
{
"status": 200,
"data": {}
}
For more details, please see our public documentation.