Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
list Table of Contents

Create Webhooks from the API

date_range 02-Apr-25

Follow these instructions to use a POST command to set up a new webhook.

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.

content_copy zoom_out_map
{
    "name": "analytic",
    "type": "http-post",
    "url": "https://username:password@hooks.abc.com/uri/...",
    "secret": "secret",
    "headers":{
        "x-custom-1": "your_custom_header_value1",
        "x-custom-2": "your_custom_header_value2"
    },
    "verify_cert": false,
    "enabled": true,
    "topics": [ "location", "zone", "vbeacon", "rssizone", "asset-raw-rssi", "device-events", "alarms", "audits", "client-join", "client-sessions", "device-updowns", "occupancy-alerts", "mxedge-events", "nac-accounting", "sdkclient-scan-data",]
}
Note:

When reusing code blocks, replace placeholder values with actual values, such as your API token, organization ID, site ID, AP name, and so on.

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. Also see The secret parameter.

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.

Also see Securing Webhooks with splunk type.

file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right
footer-navigation
keyboard_arrow_down
file_download
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
language