Text Mesage

To send a text message, make POST it to /{{Channel-ID}}/messages and attach a message text object with type = text,then add text objectlike the sample below

{
    "messaging_product": "whatsapp",    
    "recipient_type": "individual",
    "to": "{{Recipient-Phone-Number}}",
    "type": "text",
    "text": {
        "preview_url": false,
        "body": "hi there 1"
    }
}

A successful response includes an object with an identifier prefixed with wamid. Use thewamid to track your message status.

please refer to this document as well to see the possible of text object

Last updated