Everything you need to know on how to monitor events when specific actions take place in your integration.
x-simpu-webhook-signature
header. This signature is created using the following process:
The event payload is signed using HMAC-SHA512
algorithm
The result is encoded in Base64
format
This encoded signature is sent in the header
To verify an event:
Take the raw event payload (as a string)
Take the signature from the x-simpu-webhook-signature header
Use your secret key to compute a new signature
Compare the computed signature with the received signature
Here’s a quick example of the verification flow:
200 OK
status to acknowledge the receipt of the event. If the response is anything other than 200
, 201
, or 202
, the event will be considered unacknowledged, and Simpu will retry sending it every hour for up to 24 hours. Only the status code is required—any other parameters or request bodies will be ignored.
If your application needs to execute long-running tasks after receiving an event, it should still respond with a 200 OK
immediately, before proceeding with the task, to avoid duplicate events being triggered.
Event | Description |
---|---|
airtime.success | Airtime transaction was successfully completed |
airtime.failed | Airtime transaction attempted failed |
airtime.duplicate | If you attempt to send the same airtime amount to the same recipient at the same interval |
airtime.error | Unknown error |
text.delivered | The SMS message was successfully delivered |
text.undelivered | The SMS message failed to deliver |
text.clicked | The link in the SMS was clicked |
email.delivered | The email was successfully delivered to the recipient |
email.bounced | The email failed to deliver |
email.opened | The recipient opened the email |
email.clicked | The recipient clicked a link in the email |