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"
}

Whatsapp Webhooks

POSThttps://your-server.com/webhooks/kudisms

Kudisms sends POST webhooks to your configured callback URL whenever a WhatsApp message or reply is received from a recipient.

  • - Set your callback URL in the Kudisms dashboard.
  • - Webhooks include type: "custom_whatsapp" so you can tell them apart from SMS/email/voice.
  • - Respond with HTTP 200 to acknowledge.
Example Request
{
    "type": "custom_whatsapp",
    "status": "success",
    "data": {
        "object": "whatsapp_business_account",
        "entry": [
            {
                "id": "2016975642187757",
                "changes": [
                    {
                        "value": {
                            "messaging_product": "whatsapp",
                            "metadata": {
                                "display_phone_number": "234xxxxxxxxxx",
                                "phone_number_id": "1093090143877747"
                            },
                            "contacts": [
                                {
                                    "profile": {
                                        "name": "Profile Name"
                                    },
                                    "wa_id": "234xxxxxxxxxx",
                                    "user_id": "IN.866201666498626"
                                }
                            ],
                            "messages": [
                                {
                                    "from": "234xxxxxxxxxx",
                                    "from_user_id": "IN.866201666498626",
                                    "id": "wamid.HBgMOTE5MDE2MTA1MDk2FQIAEhgWM0VCMEIzRkQ1NUJENjc5MUY2RTMwOQA=",
                                    "timestamp": "1788176108",
                                    "text": {
                                        "body": "hello"
                                    },
                                    "type": "text"
                                }
                            ]
                        },
                        "field": "messages"
                    }
                ]
            }
        ]
    }
}

Updated at, Sunday, July 19, 2026