Skip to content

Webhook payload signing #200

Answered by capcom6
NeoXTof asked this question in Q&A
Mar 12, 2025 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

The signing logic is the same for all webhook events. Ensure that you are using the raw request body and concatenating it with the X-Timestamp header value without adding any extra characters in between.

For example:

  • Body:
    {"deviceId":"ffffffffceb0b1db00000193991c27e5","event":"sms:received","id":"-9qZ4oiiZZRm-h_A3mrp2","payload":{"message":"Android is always a sweet treat!","receivedAt":"2025-03-14T07:29:55.000+07:00","messageId":"69bde8d0","phoneNumber":"6505551212","simNumber":1},"webhookId":"LreFUt-Z3sSq0JufY9uWB"}
  • X-Timestamp: 1741912196

After concatenation, the string to sign becomes:

{"deviceId":"ffffffffceb0b1db00000193991c27e5","event":"sms:received","id":"-9qZ4oiiZZRm-h_A3mrp…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@NeoXTof
Comment options

@capcom6
Comment options

@NeoXTof
Comment options

@capcom6
Comment options

Answer selected by NeoXTof
@NeoXTof
Comment options

@NeoXTof
Comment options

@NeoXTof
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants