Create/Edit/Delete Inbound SMS Event Subscription

Response Format

ParameterTypeDescription
enabledbooleanIt must be true or false. True indicates the subscription is successful, while false indicates it is unsuccessful.
urlStringThe webhook URL. In access to this URL, you can receive the notification of the inbound SMS message when sent to Cinnox. For details, please refer to the Notification of the New Inbound SMS Message.
updatedAtStringThe updated date and time of this subscription. The value must be in RFC3339 format, e.g. 2022-11-07T00:00:00.000Z.

 

Notification of the New Inbound SMS Message

You can receive the notification of the new inbound SMS message by accessing the webhook URL after subscribing to the event of the Inbound SMS message.

Notification DetailsTypeDescription
idStringsThe record ID of the SMS message.
eventDescriptionStringsThe type of event you subscribed to. It must be the Inbound SMS.
senderNumberNumberThe sender number of the SMS message.
recipientNumberNumberThe recipient's SMS number. The format is "Country code + phone number". Example: 85298765432.
receiveTimeStringsThe date and time of receiving the SMS message. The value must be in RFC3339 format, e.g. 2022-11-07T00:00:00.000Z.
contentTypeStringsThe content type of the SMS message. It must be "Text".
contentStringsThe content of the SMS message.

 

🚧

Webhook URL Requirement:

The webhook URL needs to be verified. After that, you will get a POST request with an Action and are required to set the response in JSON Response format as shown below:

Note that the JsonResponse result is JSON encoding of the Action Endpoint Response.

Action Endpoint Request {
+ Challenge string json:"challenge"
+ }

Action Endpoint Response {
+ Challenge string json:"challenge"
+ }

Json Response {
+ Code int json:"code"
+ Result json.RawMessage json:"result"
+ }

Language