Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
list Table of Contents

Testing Webhooks

date_range 03-Apr-25

Use public webhook receivers to test your webhooks and ensure that you're getting the data that you need.

By testing webhooks, you can verify the configuration process as well as inspect and parse the event messages you will receive from Mist. If you do not have a webhook receiver available to you, you can use a public, free service. Many such services enable you to receive and inspect the incoming webhook POST messages from Juniper Mist.

These public sites create a random URL that you can use on a temporary basis. The data that you received is ephemeral and is deleted as soon as you close your browser. Using one of these sites from your browser, you can identify parameter data from the message payloads to help create your workflow.

After you configure your webhook, you can trigger it and view those messages as they are received on the public webhook receiver.

Two of these free testing webhook receivers are:

These sites are not Juniper maintained and are to be used at your own risk.

Test End-to-End Connectivity

With webhooks, you can test end-to-end connectivity from your Mist Cloud instance to your defined webhook receiver to confirm that you are receiving the webhook and are able to process it. This is a webhook for testing that webhooks are working. It serves the same function as a ping would for testing network connectivity, but you're testing your webhook functionality. This validates that no devices (a firewall or router) are blocking communications between the two endpoints.

This can be done from the API by issuing a POST (from your REST client) to, in this case, your org, the configured webhook (id) as seen in this example:

content_copy zoom_out_map
POST
        /api/v1/orgs/203d3d02-dbc0-4c1b-xxxx-xxxxxxxxxxxx/webhooks/032b9cb1-80af-4edc-xxxx-xxxxxxxxxxxx/ping 

A successful result looks like this:

content_copy zoom_out_map
{ 
    "topic": "ping", 
    "events": [ 
        {  
            "id": "032b9cb1-80af-4edc-xxxx-xxxxxxxxxxxx", 
            "name": "my webhook", 
            "org_id": "203d3d02-dbc0-4c1b-xxxx-xxxxxxxxxxxx",
            "timestamp": 1725375149.0829651 
        } 
    ] 
} 

This can also be done from the Juniper Mist Portal:

  1. Navigate to Organization > Admin > Settings.

  2. Find the Webhooks section and click the Add Webhook button.

  3. Select the appropriate Webhook Type, give your test webhook a name, then paste the test URL you obtained from the free webhook test receiver website (see links provided above) into the URL field.

  4. Choose the webhook topics that you want to receive messages for and set any other necessary settings.
  5. Finally, select Add.

  6. Find your test webhook listed in the Webhooks section of the Organization Settings page and click View to see the delivery events. You can check these events to see the delivery status of webhooks to confirm that you are receiving the webhook and are able to process it.

To see how to send a ping event to a site webhook, see Ping Site Webhook.

To see how to send a ping event to an organization webhook, see Ping Org Webhook.

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