Here you will find answers how to use our webhooks
Webhooks are essential for receiving information more promptly. We have two types of webhooks:
Webhook for receiving the delivery status of each SMS.
Webhook for receiving incoming SMS.
Now, let's discuss each of them:
Starting with the webhook that can notify your server about the delivery status of SMS. Thanks to this, you don't need to make additional API requests to track SMS statuses.
To set it up, go to the device settings, and in this section, enter the following in the field:
Webhooks for SMS delivery statuses
{ "sms_id": int, "status_id": int, "status_message": string, "sendto": string, "senttime": datetime, "sim": int (0 or 1), "device_id": int }
Everything here is simple and clear. Perhaps only status_id needs clarification.
Now, let's delve into the webhook for incoming SMS. Its purpose is to enable you to immediately forward an incoming SMS to your system. This is done very simply: just specify your endpoint for this webhook in the 'Webhooks for incoming SMS' field. In this case, you will be able to receive JSON through a POST request in the following format:
{ "address": int, "date": datetime, "date_sent": datetime, "body": string, "internal_id": int, "sim": int, "sms_id": int, "device_id": int, "device_name": devicename }
https://webhook.site/
We are almost always in touch via Email, Telegram or Whatsapp.