OTP and SMS API for developers in Ghana

Verify phone numbers at sign-up, login and checkout with two API calls. Send transactional SMS from your app, website or school system.

OTP verification in two calls

We generate the code, send it by SMS and check it for you. You never create, store or compare codes yourself.

  1. Send the code

    Call the send endpoint with type otp and put %otp_code% in your message where the code should appear.

  2. Your user types it in

    They receive a 6-digit code by SMS and enter it on your website or app.

  3. Verify it

    Call the verify endpoint with the number and the code. You get back a clear success or error.

1. Send an OTP
curl -X POST https://app.nkomosms.com/api/v3/sms/send \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "recipient": "233XXXXXXXXX",
    "sender_id": "YourBrand",
    "type": "otp",
    "message": "Your login code is %otp_code%"
  }'
2. Verify the code
curl -X POST https://app.nkomosms.com/api/v3/otp/verify \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ "recipient": "233XXXXXXXXX", "code": "482910" }'

Send any SMS from your system

The same REST API sends receipts, alerts and notifications. Use Bearer token or HTTP API authentication.

Send an SMS
curl -X POST https://app.nkomosms.com/api/v3/sms/send \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "recipient": "233XXXXXXXXX",
    "sender_id": "YourBrand",
    "type": "plain",
    "message": "Your order #2041 has been dispatched."
  }'

Simple REST API

JSON requests and responses, clear error messages, Bearer or HTTP token authentication.

Delivery reports

Check the status of each message in your dashboard or through the API.

WordPress and WooCommerce

Send order and payment SMS from your online shop with our plugin, no code needed.

Developer questions

Every endpoint, parameter and code sample is in the public documentation.

Do I need to generate or store the OTP code?
No. Nkomo SMS generates a 6-digit code, inserts it where you write %otp_code% in your message, and checks it when you call the verify endpoint.
How long is a code valid?
Codes expire after 5 minutes. After 5 wrong attempts, the number is locked for 10 minutes to stop guessing.
Is verifying a code charged?
No. You only pay for the SMS that carries the code.
Where do I get my API token?
Create an account, then open Developers in your dashboard to generate your API token. The full API documentation is public: read it here, no account needed.

Get your API token

Create a free account, open Developers in your dashboard and send your first OTP in minutes.