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. WhatsApp

Sending OTP

This endpoint allows you to send a one time password to your users.

PreviousWhatsApp

Last updated 9 months ago

SEND

POST /api/whatsapp/send

Headers

Name
Value

Content-Type

application/json

x-api-key

Your Api Key

Body

Name
Type
Description

code

string

One time password

recipient

string

MSISDN of recipient

Response

{
    "status": "ok",
    "description": "The request has succeeded",
    "data": {
        "msg_id": "yHhKrRghj",
        "recipient": "23490########",
        "status": "Submitted"
    }
}
https://smsapi-sur2.onrender.com