Test & Publish Event
Once you create an event, you need to test and publish it. To test an event, you can either pass the data in the supported format either in the code from where you want to implement or through API. To test event data, you will need the following.
- Get the Webhook URL of the respective integration.
- Get the JSON payload of the event that contains all the necessary and optional parameters as configured.
- POST event data to the Webhook URL.
- Publish the event (If the data is pushed to Webhook successfully).
The detailed instructions on each step are provided in the following.
- Copy the JSON payload of the event. This will contain the parameters to pass for the event.
To get the JSON payload, follow these steps.
1. Click on the event that you want to test and navigate to the { }**Code** tab.
- Copy the JSON and paste it on a Notepad.
2. Copy the Webhook or custom URL to which you want to post the data.
- On the Behavioral Events home page, navigate to the Webhook tab.
-
Copy the Webhook URL for which you want to test and past it on a Notepad.
-
Send sample data
- Using the Webhook URL, and the JSON, invole POST API call with some valid parameter details (No authentication required).
The response does not mean that the event has passed the validation successfully. You need to check the Dashboard page if the Testing is successful.
- Refresh the Behavioral Events page to see the changes.
- If the validation is successful, you will see the status change from Testing Pending to Publish.
- Click Publish to publish the event.
Updated about 1 year ago