This documentation provides guidance for establishing a messaging channel for various types of messages from the SDK to the application. The client must configure a webhook on their servers to receive these messages. Once the service is operational, the SDK connection parameters to your server hosting the webhook need to be set, including the endpoint and access parameters if authorization is used. It is crucial that the webhook designed to receive messages adheres to the request and response models described in this documentation. To view the current settings for sending messages to the webhook, an access token is required. For instructions on generating an access token, refer to the Access Token Generation sections. Methods for viewing and modifying the webhook connection settings are detailed in the Viewing Webhook Settings and Modifying Webhook Settings sections. The expected request and response models from your constructed webhook on your servers are described in the Webhook Description section
Viewing Webhook Settings
This method will display the current settings in the SDK system for sending messages to the webhook located on your server
Contains details related to the notification, including either SMS or Push notification formats
SMS Notification Example
Push Notification Example
Response
Response Fields
status_code: If the status code is 000, the request is executed successfully.
status_desc: Description of the request status.
error_message: Error message if the request fails.
delivery_id: Webhook delivery identifier
Status Codes Reference
The following status codes are used in the response to indicate the outcome of the request
Status Code
Description
000
The request was completed successfully
001
Delivery has been queued
900
The delivery was not successful
999
A critical error occurred while executing the request
901
Request parameters turned out to be incorrect
Webhook Message Types
The types of messages that can be sent via the webhook are defined as follows
Type
Description
SMS
Represents an SMS message type.
PUSH
Represents a Push notification type.
Conclusion
This documentation provides a comprehensive guide for setting up a webhook on the client's servers to receive messages from the SDK. Ensure that the webhook is configured correctly to facilitate seamless communication and notification delivery.