1. Home
  2. Docs
  3. WhatsApp
  4. Send WhatsApp Message
  5. Text Message

Text Message

You could send a text message with any of the following formats:

  • Bold (*using asterisks*)
  • Italic (_using underscores_)
  • Strikethrough (~using tildes~)
PARAMETERFORMATREQUIREDDESCRIPTIONDEFAULT
bodystringYesMessage to be sent out
previewUrlbooleanOptionalTo generate link previews if any URL exists in the messagefalse

Sample request using CURL:

$ curl -X POST https://api.geniq.io/rest/v1/whatsapp/messages \
-H 'Authorization: Bearer [TOKEN]' \
-H 'Content-Type: application/json' \
-d '{
    "recipient":"6591234567",                
    "type":"text",
    "body":"This is a *bold* message. https://www.youtube.com/watch?v=EngW7tLk6R8",
    "previewUrl":true,
    "reference": "12345"
}' \