Kenya · +254 · billed in KES

SMS API in Kenya

A REST API for SMS to Kenya numbers, with Kenya's sender rules applied automatically and every message showing the carrier that carried it. Point your SDK at kenya.woyra.io.

SMS in Kenya: the rules

Alphanumeric sender IDs allowedSender ID must be registered

Sender IDs must be registered with the Communications Authority of Kenya. Unregistered alphanumeric senders are rewritten rather than rejected.

Opt-out keywords honoured automatically: STOP, UNSUBSCRIBE, CANCEL, END, QUIT, ACHA, SIMAMA.

Endpoint, currency, data

Endpoint
kenya.woyra.io
Currency
KES
Dialling code
+254
Data region
global
Price
$0.0069 per US segment; African rates per country

Global

Your first SMS call from Kenya

curl -X POST https://kenya.woyra.io/v1/messages \
  -H "Authorization: Bearer $WOYRA_KEY" \
  -H 'Idempotency-Key: order-4821' \
  -H 'Content-Type: application/json' \
  -d '{
    "channel": "sms",
    "to": "+254712345678",
    "from": "YOURBRAND",
    "body": "Your order 4821 is out for delivery.",
    "routing": {"strategy": "conversion_optimized", "max_cost_usd": 0.03}
  }'

The same key works on every endpoint. Calling kenya.woyra.io applies Kenya's rules and, where residency requires it, keeps the data in the global region.

What sending sms to Kenya involves

Alphanumeric sender IDs, registration required · billed in KES · global data region

Your brand name, once it is registered

Kenya allows an alphanumeric sender but requires the name to be registered with the operators before traffic flows under it. Woyra files that registration and tells you when it is live; until then your traffic goes out on a sender that is already cleared, so nothing waits on paperwork.

Opt-outs, honoured without your code

A recipient in Kenya who replies STOP, UNSUBSCRIBE, CANCEL, END, QUIT, ACHA, SIMAMA is suppressed on your account immediately, and the next send to them is refused rather than delivered. You write nothing for this; it is the law in most markets and the right behaviour in all of them.

Which carrier carried it, and why

Every message to Kenya records the carrier it went out on, the score that carrier held at the time, the reason it was chosen and what it cost. It is on the message in the API response and in your logs. Carriers are scored on whether codes are actually entered, not on whether a receipt said OK.

Prepaid, with a cap you set

An account on the Kenya endpoint is billed in US dollars today. Billing in KES is where this is going, and it is a real advantage when it arrives, but a converted price needs a published rate behind it and there is not one yet, so we quote one currency rather than invent a second. Funds are reserved at the published price when a message is accepted and settled when it is delivered; a message we never deliver is never charged for, and a hard spend cap you set is enforced rather than invoiced.

Questions about Kenya

Can I use an alphanumeric sender ID in Kenya?

Kenya allows alphanumeric sender IDs, so a message can arrive from your brand name rather than a number. The sender ID must be registered first; Woyra files the registration and tells you when it is live.

Which opt-out keywords are honoured in Kenya?

STOP, UNSUBSCRIBE, CANCEL, END, QUIT, ACHA, SIMAMA. A recipient who replies with one is suppressed on your account automatically.

What currency am I billed in for Kenya?

KES, prepaid, with a hard spend cap you set per project.

Where does the data of a recipient in Kenya live?

Global

What does a Kenya phone number look like in the API?

E.164: a plus, the country code +254, then the subscriber number, as in +254712345678. Woyra strips spaces, hyphens, brackets and a leading 00, but it will not guess a missing country code, because the same digits belong to a different subscriber in every country.

Which endpoint should I call for Kenya?

kenya.woyra.io, though the same API key works on every endpoint Woyra runs. Which one you call decides the compliance rules applied, the currency you are billed in, and — where residency requires it — which data plane answers.

Also in Kenya