-
Notifications
You must be signed in to change notification settings - Fork 183
Description
Describe the Bug
The webhook payload structure for sms:received events doesn't match the structure shown in the documentation. The message text field location and payload structure are different, causing parsing issues.
To Reproduce
Steps to reproduce the behavior:
- Configure a webhook endpoint to receive
sms:receivedevents - Send an SMS to the monitored device
- Inspect the received webhook payload
- Compare the payload structure with the documentation
Expected vs Actual Behavior
-
Expected: Message text should be nested at
payload.textMessage.textas shown in docs:"payload": { "textMessage": { "text": "Android is always a sweet treat!"}, "phoneNumber": "6505551212", "receivedAt": "2024-06-22T15:46:11.000+07:00" }
-
Actual: Message text is at
payload.messagewith additional fields:"payload": { "message": "Testing", "receivedAt": "2025-12-15T13:10:01.000+01:00", "messageId": "xxxxxxxx", "phoneNumber": "+48XXXXXXXXX", "simNumber": 1 }
Screenshots
N/A - JSON payload difference
Environment
- App Version: 1.51.3 (1248)
- Mode: Local
- Operation: Receiving SMS
- Integration: Webhook API
- Network Type: Local
Smartphone
- Device: Xperia G8341
- OS: Android
- SIM Card Count: 1
Additional Context
The actual payload structure is flattened and includes undocumented fields (messageId, simNumber). Would be great to update the docs to reflect the real structure so developers can parse webhooks correctly. Thanks!
Checklist Before Submission
- I have described the bug in detail.
- I have provided the steps to reproduce.
- I have included screenshots (if applicable).
- I have provided environment details.
- I have included relevant log file excerpts (if applicable).
- I have read [FAQ](https://sms-gate.app/faq/general/) and other relevant information.