All pages
Powered by GitBook
1 of 1

Loading...

Integration Webhook

Send integration failure notifications to your internal systems with event-triggered HTTP messages

An integration webhook delivers immediate notifications to your internal systems when an integration enters a Warning or Error state. This enables timely detection and response to issues, helping prevent downstream impact.


Prerequisites

Item
Description

Configure a webhook

Follow these steps to configure an Apono webhook:

  1. On the page, click Add Webhook. The Add Webhook page appears.

  2. Click Integration.

  3. Enter a unique, alphanumeric, user-friendly Integration Webhook Name for identifying this webhook.

  4. Click the Status toggle to

The webhook URL must use the HTTPS protocol.

  1. In the Body Template field, construct a JSON body for the webhook payload. The following is an example webhook payload.

Click View event's payload schema to reveal the payload schema and available data fields.

  1. (Optional) If applicable, enter the authentication information required by the target system.

  1. Under Filters, define one or several filters from the Integration, Type, and Status dropdown menus.

Filters empower admins to control the data transmitted via webhooks, minimizing the amount of data third-party tools receive and reducing unnecessary clutter.

Use these filters to scope notifications to specific integrations, integration types, or status changes, such as Error, Warning, or Active.

  1. (Optional) In the Timeout in seconds field, enter the duration in seconds to wait before marking the request as failed.

  2. (Optional) Define Response Validators to verify that the response from the webhook meets specified criteria:

    1. Click + Add. A row of settings appears.

For more information about the test, click View Invocation Data. A panel opens revealing the request, response, and other relevant details.

Should your test fail, view these tips to .

  1. Click Save Webhook.

The new webhook appears in the Webhooks table. Active webhooks are marked with a green dot. Inactive webhooks are marked with a white dot.

Apono notifications will be sent to your target system when the status of an integration has changed to a warning or error state.

Active
.
  • From the Type dropdown menu, select HTTP Webhook.

  • From the Method dropdown menu, select the POST method.

  • For the URL field, enter the URL of the target system that will receive the webhook.

  • Starting with
    $.data.
    , enter the
    Json Path
    of the JSON parameter.
  • In the Expected Values field, enter a value and press the Enter key on your keyboard.

  • Repeat step c to add several expected values.

  • Repeat steps a-d to add multiple response validators.

  • Click Test to generate a test event to trigger your webhook. A Test successful or Test failed response status will appear at the bottom of the page. A successful test will send mock data to the target system.

  • Target System API

    Authentication information used when making requests to the target system

    Apono supports the following authentication:

    • Bearer Token

    • OAuth

    • Custom (key-value pairs passed in the header)

    This is required only if the system receiving the webhook notifications requires authentication.

    Target System Webhook URL

    URL of the target system that will receive the webhook

    Webhooks
    troubleshoot your webhook
    Integration webhook setup
    {
      "event_type": "{{event_type}}",
      "event_time": "{{event_time}}",
      "data": {
        "id": "{{data.id}}",
        "name": "{{data.name}}",
        "type": "{{data.type}}",
        "status": "{{data.status}}",
        "issues": [
          {
            "status": "{{data.issues.status}}",
            "message": "{{data.issues.message}}"
          }
        ]
      }
    }

    Follow this step to add Bearer Token authentication:

    1. Under Headers, use the Key and Value fields to set the access token.

    Key
    Value

    Authorization

    Bearer <API_TOKEN>

    Follow these steps to add OAuth authentication:

    1. From the Authentication Type dropdown menu, select OAuth. The OAuth settings appear.

    2. Define the OAuth settings.

    Setting
    Description

    Follow these steps to add custom authentication:

    1. Under Headers, use the Key and Value fields to set the credential information.

    2. If your tool or service has several values, enter each key-value pair in a separate row.

    The following example uses as an example.

    Key
    Value

    DD-API-KEY

    <API KEY>

    DD-APPLICATION-KEY

    <KEY ID>

    Client ID

    Unique identifier assigned by the authorization server

    Client Secret

    Secret key issued by the authorization server

    Token Endpoint URL

    URL where the authorization code or refresh token is exchanged for an access token

    Scopes

    (Optional) Set of permissions requested to access specific resources or APIs

    Datadog