Skip to content

For developers

A pickup text is a promise. Price it, send it, prove it.

Managed SMS starts with an approved sender ID, a destination quote and one durable message row. Follow order 4821 from the price shown to the receipt — and keep accepted and delivered apart.

This walkthrough uses the registered v1 managed SMS routes. Messaging API v2 is a preview here: one recipient, no quote or bulk, and dispatch remains a qualification path, not a production delivery claim.

Managed SMS · sample

Pickup notice · order 4821

v1 path

From

BONGA · approved sender ID

Quote

KES 0.50

1 segment · sample rate

+254 712 345 678

14:10

Order 4821 is ready at Kilimani. Collect until 8pm — bring this ticket.

  1. Quote

    09:41

    The destination, message length and sender are priced before you commit.

    POST /api/v1/sms/quote → 200
  2. Submit

    09:42

    A batch and one message row are created. The message is queued, not sent.

    POST /api/v1/sms/send → 202
  3. Receipt

    09:43

    The per-recipient row carries the provider evidence, or says it is unknown.

    GET /api/v1/sms/batches/{id}/messages → 200
Sample values. The quote is advisory; sender readiness, consent and wallet state are rechecked at send time.
Messaging and provider charges are separate from the workspace plan. See pricing

What the quote actually buys

A quote returns the segment count, encoding and exact total for one destination. It is the price you can show a finance team before the customer is told the parcel is ready.

Pass the returned quote ID when you submit and the send is checked against that exact request. The quote expires, and a changed message, sender or destination needs a new one.

Read the managed SMS contract
Quote requestapplication/json
POST /api/v1/sms/quote
Authorization: Bearer $BONGA_API_KEY
Content-Type: application/json

{
  "phoneNumber": "+254712345678",
  "message": "Order 4821 is ready at Kilimani. Collect until 8pm.",
  "senderID": "BONGA"
}
Quote result200 OK
{
  "data": {
    "id": "sms_quote:7f3a1c...",
    "data": {
      "currency": "KES",
      "total": "0.500000",
      "expiresAt": "2026-12-05T09:46:00Z",
      "messages": [
        {
          "segments": 1,
          "encoding": "GSM-7"
        }
      ]
    }
  }
}
Submit the quoted messagePOST /api/v1/sms/send
POST /api/v1/sms/send
Authorization: Bearer $BONGA_API_KEY
Idempotency-Key: pickup-4821
Content-Type: application/json

{
  "phoneNumber": "+254712345678",
  "message": "Order 4821 is ready at Kilimani. Collect until 8pm.",
  "senderID": "BONGA",
  "quoteID": "sms_quote:7f3a1c..."
}
Accepted202 · queued
HTTP/1.1 202 Accepted

{
  "data": {
    "id": "sms_batch:7f3a1c...",
    "data": {
      "messages": ["sms_message:..."],
      "createdAt": "2026-12-05T09:42:11Z"
    }
  }
}

The batch exists and the charge is reserved or drawn from SMS units. The recipient still has no delivery evidence until the report row moves.

Acceptance is not a receipt

A 202 means Bonga made a durable record. It does not mean a carrier accepted the message, and it never means the phone received it.

Read the batch rows until the recipient reaches a terminal state. If the provider outcome is unknown, reconcile the row instead of resending it with a new request.

A failed or rejected recipient is not charged. An ambiguous submission stays charged until it is reconciled — that is why unknown needs a person or a job, not a retry loop.

Managed SMS statuses and what each one proves
State What it proves What it does not
queuedBonga recorded the request, scoped it to the workspace and held the price.That a provider has seen it.
acceptedThe provider accepted the submission for that recipient.That the handset received it.
deliveredThe route returned a delivery receipt.Anything about a message that only shows accepted.
unknownThe provider outcome is ambiguous. Reconcile the row before another attempt.That the message failed.
Per-recipient evidenceGET · batch messages
GET /api/v1/sms/batches/sms_batch:7f3a1c.../messages

{
  "data": {
    "items": [
      {
        "data": {
          "status": "delivered",
          "senderID": "BONGA",
          "phoneNumber": "+254712345678",
          "segments": 1
        },
        "evidence": {
          "channel": "sms",
          "sender": "BONGA",
          "destination": "+254712345678",
          "delivery_status": "delivered"
        }
      }
    ],
    "coverage": "complete",
    "date_basis": "updatedAt"
  }
}

Managed route or your own SIM?

Both send an SMS. They differ in who owns the route, what has to be registered and how the receipt comes back.

A managed sender on Bonga’s routes

  • Choose this when you need volume and a consistent business identity.
  • Register the sender ID for each market that requires it.
  • Pay per segment from the wallet or prepaid SMS units; the route supplies the receipt.
Open sender IDs

A paired Android phone and its SIM

Pair a phone when you control the SIM, the volume is moderate and you want the message to leave from that subscription. The gateway polls Bonga and sends through the handset.

  • The phone must stay online, have signal and carry SMS credit.
  • Delivery waits for the device; it is not a managed carrier route.
  • Inbound SMS and USSD sessions can flow back through the same connection.
  • Use it for the team phone, a branch alert or a market where managed coverage is thin.
Read the Android gateway path

Before the first send

The API call is the last step. Most launch delays live in coverage, sender approval and key scope.

  1. 01

    Check the destination and rate

    Coverage and pricing are per country, telco and sender. Use the calculator for an estimate, then quote through the API for the actual message.

    Open the SMS calculator
  2. 02

    Get the sender approved

    A managed sender ID may need documents and carrier approval. Registration can take days, so start before the launch date.

    Read sender registration
  3. 03

    Scope the key to the job

    The send key needs sms:send; the report key needs sms:read. Keep both on the server and give each integration its own key.

    Read authentication
  4. 04

    Store the batch ID, not just the phone number

    Recipients in one batch can diverge. The batch page shows each row, and the message report tells you whether to wait, reconcile or stop.

    Read delivery evidence

One workspace

Start with the job you have. Add the next channel when you need it.

Contacts, consent, delivery evidence and team access stay in one place as you grow from one channel to three.