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.
Send the code
Call the send endpoint with type
otpand put%otp_code%in your message where the code should appear.Your user types it in
They receive a 6-digit code by SMS and enter it on your website or app.
Verify it
Call the verify endpoint with the number and the code. You get back a clear success or error.
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%"
}'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.
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?
How long is a code valid?
Is verifying a code charged?
Where do I get my API token?
Get your API token
Create a free account, open Developers in your dashboard and send your first OTP in minutes.