Text

This page describes text messages on the WhatsApp Business Platform.

Text messages contain only a text body and an optional link preview.

Text Message Request

Use the messages endpoint to send a text message to a WhatsApp user.

POST https://waba-v2.360dialog.io/messages

Headers

Name
Value

Content-Type

application/json

Authorization

D360-API-KEY

Body Example

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "<WHATSAPP_USER_PHONE_NUMBER>",
  "type": "text",
  "text": {
    "preview_url": <ENABLE_LINK_PREVIEW>,
    "body": "<BODY_TEXT>"
  }
}

Response

The WhatsApp client can attempt to generate a preview for the first URL in the message body, provided it begins with http:// or https://. If multiple URLs are included, only the first will be rendered as a preview. If omitted or if a preview cannot be retrieved, the URL will be displayed as a clickable link instead.

Formatting in Text Messages

WhatsApp allows some formatting in messages. To format all or part of a message, use these formatting symbols:

Formatting
Symbol
Example

Bold

Asterisk (*)

Your total is *$10.50*.

Italics

Underscore (_)

Welcome to _WhatsApp_!

Strike-through

Tilde (~)

This is ~better~ best!

Code

Three backticks (```)

```print 'Hello World';```

Last updated

Was this helpful?