Skip to content

Send SMS from your own SIM cards.

YourSMS Gateway is an open-source server and Android app. Your application calls a REST API, and a phone you own sends the message and reports what happened to it.

Apache 2.0 licence. Runs on one machine with Docker.

POST /api/v1/sms/send
Authorization: Bearer ys_live_••••••••

{
  "to": "+250788123456",
  "message": "Your order has been confirmed."
}
To +250788123456
Your order has been confirmed.
30 / 160 characters1 segmentGSM-7

The count follows the server's rules. Type an emoji and a segment shrinks from 160 characters to 70.

What happens to a message

  1. 1

    Your application

    Sends one HTTPS request with an API key.

  2. 2

    The server

    Queues the message and picks one of your phones.

  3. 3

    Your phone

    Sends it as an ordinary SMS from its SIM card.

  4. 4

    The recipient

    Gets a text from a real mobile number.

The result travels the same way back: sent, delivered or failed, with the reason. Your application can ask for it, or be told through a webhook.

Every message has a history

The dashboard and the API show each step a message took, with its time. You can cancel one that has not left yet, and retry one that failed.

When a phone cannot tell whether a message left, the message is marked Unknown and is never sent again on its own. Nobody gets the same text twice because of a retry.

ScheduledQueuedSentDeliveredFailedUnknown
What each status means

A phone on a charger is the whole gateway

Install the app on an Android phone, scan the QR code the dashboard shows, and allow four permissions. From then on the phone asks the server for work and sends it.

Pair more phones to send more. The server shares the messages between them, and notices within 90 seconds when one goes quiet.

How to pair a phone

Made to be called from code

What your application receives when a message is delivered

{
  "eventId": "5b0f6a7b-8c90-4e2a-9c31-8f2a1c0e4b7d",
  "event": "sms.delivered",
  "createdAt": "2026-12-01T08:32:14Z",
  "data": {
    "messageId": "8f2a1c0e-4b7d-4e2a-9c31-5d0f6a7b8c90",
    "recipient": "+250788123456",
    "status": "DELIVERED",
    "reference": "ORDER-10001"
  }
}
How to check that it really came from your server

Before you rely on it

A phone is not a telecom contract. These are the things that surprise people.

The full list
  • Your operator charges for every SMS, and sets its own terms for automated sending.
  • Android limits how fast an app may send. The limit differs between phones.
  • The Android app is installed from a file you build. It is not on Google Play.
  • Delivery reports depend on the operator. Many never send them.

Start with one phone.

The quick start takes you from an empty server to a text on your own phone.