Skip to content

Bug Report: SMS Webhook Payload Doesn't Match Docs #300

@pawel-mackiewicz

Description

@pawel-mackiewicz

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:

  1. Configure a webhook endpoint to receive sms:received events
  2. Send an SMS to the monitored device
  3. Inspect the received webhook payload
  4. Compare the payload structure with the documentation

Expected vs Actual Behavior

  • Expected: Message text should be nested at payload.textMessage.text as 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.message with 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions