Whatsapp API
  • Getting Started
    • Dashboard API Overview
    • Register WhatsApp Business API Number
    • Get Channel ID & Link Your App
    • Get Access Token
    • Create WhatsApp Template
  • Whatsapp API
    • WhatsApp API's Overview
    • Media
      • Upload Media
      • Download Media
    • Send Messages
      • Text Mesage
      • Reaction Message
      • Media Message
      • Contact Message
      • Interactive Message
      • Template Message
      • Reply Message
    • Mark Message as Read
    • Set-up Webhook
      • Received Messages
      • Message Status
    • Error Codes
Powered by GitBook
On this page
  1. Whatsapp API
  2. Send Messages

Text Mesage

PreviousSend MessagesNextReaction Message

Last updated 2 years ago

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 as well to see the possible of text object

document