Kenya · +254 · billed in KES

Transactional email API for Kenya

Receipts, alerts and one-time codes by email to customers in Kenya, from a domain you verify once. Billed in KES on the same account and key as your SMS.

Email 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.30 per 1,000 emails, first 3,000 a month free

Global

Your first Email call from Kenya

curl -X POST https://kenya.woyra.io/v1/emails \
  -H "Authorization: Bearer $WOYRA_KEY" \
  -H 'Idempotency-Key: receipt-4821' \
  -H 'Content-Type: application/json' \
  -d '{
    "from": "receipts@yourdomain.com",
    "to": "abebe@example.com",
    "subject": "Your receipt for order 4821",
    "text": "Thank you. Your order is confirmed."
  }'

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 email to Kenya involves

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

Email does not change at the border

Mail to Kenya is carried the way mail is carried everywhere: a domain you verify once, DKIM keys Woyra generates, bounces and complaints suppressed automatically. What the Kenya endpoint changes is the account around it — KES billing, and the global data region.

Where this data lives

Global The residency of a message is decided when it is accepted and travels with it, so it cannot be moved later by a query written somewhere else.

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.

One key, both directions

The same key sends SMS and one-time codes to +254 numbers, and the same domain receives: add the MX record and every address on it is an inbox, with replies linked to the email they answer.

Questions about Kenya

Is email delivery different in Kenya?

No. Email is carried the same way everywhere; what changes is the account: KES billing and the global data region.

Where is the email address of a customer in Kenya stored?

Global

Can I send SMS and email to Kenya from one account?

Yes. One key covers email, SMS, verification and lookup, and a verification can use both channels in one request.

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