Skip to content

Received messages ​

Messages your SIM cards receive are stored by the server. Needs a key with the sms:read permission.

To be told about each one as it arrives, use the incoming_sms.received webhook instead of asking repeatedly.

List them ​

http
GET /api/v1/incoming-sms

Newest first. All filters are optional:

ParameterMeaning
senderThe number or name the message came from
deviceIdThe device that received it
from, toReceived at or after from, and before to. ISO 8601 dates.
pageThe page, starting at 0
sizeMessages per page, 20 by default
sh
curl "https://yoursms.ngwije.cloud/api/v1/incoming-sms?sender=%2B250788123456" \
  -H "Authorization: Bearer $YOURSMS_API_KEY"

A + in a web address must be written as %2B.

json
{
  "items": [
    {
      "id": "c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f",
      "deviceId": "59967c2f-79c3-42c3-b739-beb27e6afc9c",
      "simCardId": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
      "sender": "+250788123456",
      "message": "STOP",
      "receivedAt": "2026-12-01T08:31:00Z"
    }
  ],
  "page": 0,
  "size": 20,
  "totalElements": 1,
  "totalPages": 1
}

Senders are not always numbers ​

Banks, operators and services often send from a name, such as MyBank, instead of a number. sender is whatever the network reported.

Opt-outs ​

When someone replies STOP, or anything that means it, stop messaging them. Nothing does this for you: watch for these replies and keep your own list of people not to message.