KudiSMS Logo

WhatsApp

Send WhatsApp messages via approved WhatsApp Templates, either through your own connected Business Account or the default KudiSMS fixed number for OTPs.

Send WhatsApp (custom template)

POST/whatsapp_custom

Requires connecting your WhatsApp Business Manager to KudiSMS, adding your WhatsApp Business phone numbers, and submitting your WhatsApp Templates for approval. Messages are sent from your business-branded WhatsApp number, and you can see and reply to customer responses.

FieldExampleDescription
token*Api KeyYour API key.
recipient*23480xxxxRecipient phone number.
phone_number_id*xxxxxxxxxxxxxxxSender WhatsApp Phone Number ID — from the Connect WhatsApp page (/user/whatsapp_connect).
template_code*xxxxxxxxxxxxTemplate code to use — from the Custom WhatsApp Template page (/user/whatsapptemplatereport).
parametersxxxx,xxxxx,xxxx,xxxxRequired parameters in the template body, comma-separated.
button_parametersxxxx,xxxx,xxxButton parameter for a Dynamic URL, e.g. https://example.com/{{1}} — value of URL parameter {{1}}.
header_parametersxxxx,xxxxHeader parameters, if any.
Example response — 200 OK
{
  "status": "success",
  "error_code": "000",
  "data": "234XXXXXXXX|42a455f3-8d4d-a775-4311-13790d5820c0",
  "msg": "Message sent Successfully"
}

Send Default WhatsApp OTP

POST/whatsapp

Sends WhatsApp OTP messages via KudiSMS's fixed ID and WhatsApp Template — no need to connect your own WhatsApp Business Account or subscribe to the WhatsApp service.

Fixed values

template_code: 2147483647 (fixed) · parameters: your OTP value, e.g. 1234
FieldExampleDescription
token*Your KudiSMS API KeyYour API key.
recipient*23480xxxxRecipient phone number.
template_code*2147483647Fixed template code (see above).
parameters*9889OTP value to send.
Example response — 200 OK
{
  "status": "error",
  "error_code": "100",
  "msg": "Token provided is invalid."
}

Updated at, Sunday, July 19, 2026