Online Live Support V3 | WhatsApp API Guide
  • Welcome
  • Quick Guide
  • Connecting a channel
    • Multi-Device Beta
    • Step 1: REGISTER YOUR NEW ACCOUNT
    • Step 2: Connect Your WhatsApp number
    • Disconnect WhatsApp Number or Session
    • Session not found
  • Webhooks
    • Webhook Setup
  • How to Connect:
    • WhatsApp messages via Google Sheet
    • [Beta] Chatwoot with OnlineLiveSupport
  • Send Message
    • Send a Message to the WhatsApp Group
  • API Docs
    • WhatsApp API Documentation
      • Chats
        • SendMessageText
        • Send bulk
        • SendimageURL
        • SendDocumentUrl
        • SendVideoUrl
        • SendLocation
        • SendVCard
        • SendListMessages
        • SendButtonMessage
        • SendTemplateMessages
        • CheckNumber
      • Groups
        • SendMessageText
        • SendImageUrl
        • SendDocumentUrl
        • SendVideoUrl
        • SendLocation
        • SendVCard
        • SendListMessages
        • SendButtonMessage
        • SendTemplateMessages
        • CreateGroup
        • InfoGroup
        • ListParticipants
        • MakeAdmin
        • DemoteAdmin
        • AddParticipants
        • RemoveParticipants
        • SetGroupName
        • SetGroupDescriptions
        • GroupSettingUpdate
        • InviteGroup
        • LeaveGroup
      • Sessions
        • Status
  • Postman Collection
Powered by GitBook
On this page

Was this helpful?

  1. API Docs
  2. WhatsApp API Documentation
  3. Chats

SendTemplateMessages

PreviousSendButtonMessageNextCheckNumber

Last updated 2 years ago

Was this helpful?

Send ButtonLinkMessage

post
Query parameters
idstringRequiredExample: id
Body
all ofOptional
and
anyOptionalExample: {"jid":"receivernumber","text":"body text","footer":"footer text","imageUrl":"","templateButtons":[{"index":1,"urlButton":{"displayText":"Google","url":"https://google.com"}},{"index":2,"callButton":{"displayText":"Call me!","phoneNumber":"+1 (234) 5678-901"}},{"index":3,"quickReplyButton":{"displayText":"This is a reply, just like normal buttons!","id":"id-like-buttons-message"}}]}
Responses
200Success
post
POST /chats/sendTemplateMessages HTTP/1.1
Host: base_url
Content-Type: application/json
Accept: */*
Content-Length: 385

{
  "jid": "receivernumber",
  "text": "body text",
  "footer": "footer text",
  "imageUrl": "",
  "templateButtons": [
    {
      "index": 1,
      "urlButton": {
        "displayText": "Google",
        "url": "https://google.com"
      }
    },
    {
      "index": 2,
      "callButton": {
        "displayText": "Call me!",
        "phoneNumber": "+1 (234) 5678-901"
      }
    },
    {
      "index": 3,
      "quickReplyButton": {
        "displayText": "This is a reply, just like normal buttons!",
        "id": "id-like-buttons-message"
      }
    }
  ]
}
200Success

No content