HTTP API

For systems that cannot send an Authorization header. Send SMS and OTP with the API token inside the request.

Base URLhttps://app.nkomosms.com/api/v3

The HTTP API does the same jobs as the main API, but the token goes in the request as api_token instead of a header. Use it for older systems, plugins or devices that cannot set headers. If you can set headers, use the main API.

Send an SMS

POST/api/http/sms/send

Sends an SMS. The parameters are the same as the main API, plus api_token.

Body parameters

ParameterRequiredDescription
api_tokenstringRequiredYour API token from Developers in your dashboard.
recipientstringRequiredPhone number in international format without +, for example 233552690110. Separate several numbers with commas: 233552690110,233201234567.
sender_idstringRequiredYour approved Sender ID, up to 11 characters. This is the name people see. How to get a Sender ID.
typestringRequiredplain for SMS, otp for an OTP.
messagestringRequiredThe text of your message.
schedule_timedatetimeOptionalSend later instead of now. Format Y-m-d H:i, for example 2026-12-24 08:00, in the time zone set on your account.
Example request
curl -X POST "https://app.nkomosms.com/api/http/sms/send" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "api_token": "YOUR_API_TOKEN",
    "recipient": "233552690110",
    "sender_id": "YourBrand",
    "type": "plain",
    "message": "Hello from Nkomo SMS"
  }'
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Send with a single link

GET/api/http/sms/send

Some systems can only open a URL. Put every field in the link:

Link
https://app.nkomosms.com/api/http/sms/send?recipient=233552690110&sender_id=YourBrand&message=Hello&api_token=YOUR_API_TOKEN
The token is visible in the link, so it can end up in browser history and server logs. Use this only when POST is not possible, and generate a new token if the link is shared.

View an SMS

GET/api/http/sms/{uid}

Returns one message and its delivery status.

Path parameters

ParameterRequiredDescription
uidstringRequiredThe message uid returned when the message was sent.
Example request
curl -X GET "https://app.nkomosms.com/api/http/sms/606812e63f78b?api_token=YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

List your messages

GET/api/http/sms

Returns your messages in pages.

Example request
curl -X GET "https://app.nkomosms.com/api/http/sms?api_token=YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Verify an OTP

POST/api/http/otp/verify

Checks an OTP code. Works the same as the main OTP verify endpoint.

Body parameters

ParameterRequiredDescription
api_tokenstringRequiredYour API token.
recipientstringRequiredThe number the OTP was sent to.
codestringRequiredThe code your user entered.
Example request
curl -X POST "https://app.nkomosms.com/api/http/otp/verify" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "api_token": "YOUR_API_TOKEN",
    "recipient": "233552690110",
    "code": "482910"
  }'
Response
{
  "status": "success",
  "data": {
    "recipient": "233552690110",
    "verified": true
  },
  "message": "Code verified."
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Need help with your integration?

Message us on WhatsApp, call +233 55 269 0110 or email support@nkomosms.com. Send us the request you made and the response you got, but never your API token.