API Documentation

Official guide for integrating SMS functionality, checking balances, and retrieving delivery reports via the SMSurWay gateway.

Base URL: https://smsurway.com.ng/portal

2. Authentication

All requests require valid user credentials. Requests without valid credentials will fail.

ParameterTypeRequiredDescription
userStringYesSMSurWay account username
passStringYesSMSurWay account password
POST

3. Send SMS API

Endpoint: /send-sms | URL: https://smsurway.com.ng/portal/send-sms

Request Parameters

ParameterTypeRequiredDescription
userStringYesAPI Username
passStringYesAPI Password
fromStringYesSender ID (max 11 chars)
toStringYesRecipient number(s), comma or newline separated
msgStringYesSMS message content
typeStringNoMessage type (text default)

Payload Example

POST https://smsurway.com.ng/portal/send-sms
user=smsurway
pass=********
from=SMSurWay
to=2348012345678,2348098765432
msg=Hello, this is a test message
type=text
GET

4. Check Account Balance

https://smsurway.com.ng/portal/check-balance?user=smsurway&pass=********

{
  "status": "SUCCESS",
  "balance": 12500.50,
  "currency": "NGN"
}
GET

5. Delivery Report (DLR)

https://smsurway.com.ng/portal/deliveryreport/{send_id}

DLR Status Values

PENDING

Awaiting Delivery

DELIVERED

Success

FAILED

Failed

EXPIRED

Expired

GET

6. Refresh Delivery Report

Manually refresh delivery status from provider:

https://smsurway.com.ng/portal/deliveryreport/{send_id}/refresh

7. Error Codes

Error MessageDescription
Invalid credentialsWrong username or password
Insufficient balanceAccount balance too low
Invalid recipientPhone number format error