Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configure Webhooks from the API

Start getting familiar with configuring webhooks with the API.

You can configure webhooks from the API, rather than using the Juniper Mist portal.

Note:

For more information about the API, go to these resources:

When configuring webhooks, always be aware of the configuration hierarchy.

  • In an organization-level webhook, specify the organization ID: /api/v1/orgs/{org-id}/webhooks

    Note:

    To find the {org-id}, select Organization > Settings from the left menu of the Juniper Mist portal. The organization ID appears near the top of the Organization Settings page.

  • In a site-level webhook, specify the site ID: /api/v1/sites/{site-id}/webhooks

    Note:

    To find the {site-id}, select Organization > Site Configuration from the left menu of the Juniper Mist portal. Then select the site. The site ID appears near the top of the site Configuration page.

Example: Site Configuration

The following function displays all the webhooks configured for a specific site:

/api/v1/sites/4ac1dcf4-9d8b-7211-xxxx-xxxxxxxxxxxx/webhooks

The following output is the result of the previous API call: