Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Create Webhooks from the API

Use a POST to configure a webhook and to enable topics.

In your API call, be aware of the configuration hierarchy and the different topics that are available for organizations and sites.

  • In the API function, be sure to specify the organization ID or site ID. See Configure Webhooks from the API.

  • In the topics line, be sure to specify only the topics that are appropriate for the organization or site level. See Webhook Topics.

Here is an example of a POST to configure a site webhook to enable site-level topics:

See Create Site Webhook for the example POST structure. Also see Create Org Webhook if applicable. A sample response is provided below.

Table 1: Webhook Parameter Descriptions

Parameter

Description

name

The name of the configured webhook.

type

The type of webhook (http-post, splunk, etc).

url

The destination to receive the webhook.

secret

When using the http-post webhooks type, the secret is used by the Mist Cloud to sign the webhook message.

headers

Custom headers can be added under the headersproperty. These custom headers will be added in the HTTP headers sent by the Mist Cloud for authentication. See apiToken (Custom Header Signature) and csrfToken (Custom Header Signature) if applicable.

verify_cert

Whether or not certificate verification is turned on. True or False.

enabled

Whether or not the webhook is enabled. True or False.

topics

The selected items you want receive messages or alerts for. To learn more, see Webhook Topics. Also see the Mist API Reference's Webhook Topics.