SmarthiveSMS API
  • Introduction
  • SMS
    • Send Single SMS
    • Send Multiple SMS
    • Status
    • Balance
    • Send SMS Sample Code
    • Callback
    • SMS DLR Error Codes
  • WhatsApp
    • Sending OTP
Powered by GitBook
On this page
  1. SMS

Send Single SMS

PreviousIntroductionNextSend Multiple SMS

Last updated 11 months ago

// Body sample
{
    "sender": "Smarthive",
    "recipients": "23490########",
    "msg": "Hello World",
    "type": 1,
    "route": "MKT"
    "ext_ref": "67uf_cu68"
}
ext_ref is an optional field. The value must be unique

Send

POST /api/sms/send

This endpoint allows you to send SMS Message

Headers

Name
Type
Description

x-api-key*

String

Your API Key

Request Body

Name
Type
Description

sender*

String

Sender ID

recipients*

String

MSISDN of recipient in international format

msg*

String

SMS body ( < 905 characters)

type*

int

0: Flash SMS, 1: SMS delivers to inbox(default)

route*

String

MKT for Promotional SMS, TRX for Transactional SMS, INTL for International SMS

ext_ref

String

Unique Message reference

{
    "status": "ok",
    "description": "The request has succeeded",
    "data": {
        "msg_id": "DXww578MO",
        "recipient": "2349042839232",
        "status": "Submitted"
    }
}

https://smsapi-sur2.onrender.com