EleAPI's Resource center
  • 🏠Introduction
  • πŸ“’eleapi Resource Center
    • πŸƒβ€β™‚οΈHow eleapi works?
      • πŸ“–Starting with eleapi
      • πŸ“–Bot Management
        • πŸ“–Create new Bot
          • πŸ“–Website, Live chat or Landing Page Bots
          • πŸ“–WhatsApp Bot Creation with Manual Onboarding
            • βœ…Prerequisites for WhatsApp Bots
            • πŸ”€Create a Meta App
            • βœ”οΈRegister & Verify your WhatsApp Number
            • πŸ”—Subscribe WA webhook with eleapi
            • πŸ’³Update WA account Payment Method
            • πŸ¦Έβ€β™€οΈAssign System User to WhatsApp Account
            • πŸ“ƒGetting all the necessary details from Meta Developer Dashboard
          • πŸ“–Make Your Telegram Chatbot
        • πŸ“–Edit Your Chat Flow
        • πŸ“–Train Your AI Chatbot
          • πŸ“–Train your AI eleapi using websites
          • πŸ“–Train your AI eleapi by uploading files.
          • πŸ“–Train your AI eleapi using frequently asked questions (FAQs).
          • πŸ“–Train your bot using the conversation history.
          • πŸ“–Train your AI eleapi using other sources.
        • πŸ“–Bot Settings
          • πŸ“–Website Bot settings
            • πŸ“–Design
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–Triggers
            • πŸ“–User Access
            • πŸ“–Chat Window
            • πŸ“–AI Settings
          • πŸ“–WhatsApp eleapi Settings
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–AI Settings
          • πŸ“–Telegram Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
          • πŸ“–Facebook Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
        • πŸ“–Marketing Automation
          • πŸ“–Broadcasts on WhatsApp, Telegram & Facebook
          • πŸ“–Drip Campaigns on WhatsApp, Telegram & Facebook
        • πŸ“–Install your Website Chatbot
          • Install Website Bot on WordPress
        • πŸ“–3rd Party Apps Integrations
          • Agile CRM integration with eleapi
          • Apptivo CRM integration with eleapi
          • Autopilot CRM integration with eleapi
          • Bitrix24 CRM Integration with eleapi
          • CalendarHero integration with eleapi
          • Capsule CRM integration with eleapi
          • Chakra CRM integration with eleapi
          • Close CRM integration with eleapi
          • Copper CRM integration with eleapi
          • Drip CRM integration with eleapi
          • EngageBay CRM integration with eleapi
          • Drip CRM integration with eleapi
          • ExtraaEdge integration with eleapi
          • FirstPromoter integration with eleapi
          • Flowlu integration with eleapi
          • Freshworks CRM integration with eleapi
          • Freshdesk CRM integration with eleapi
          • Frontapp integration with eleapi
          • GetResponse integration with eleapi
          • Go High Level Integration with eleapi
          • Google Analytics integration with eleapi
          • Google Calendar Integration with eleapi
          • Google Contacts Integration with eleapi
          • Google Tasks integration with eleapi
          • Groove CRM integration with eleapi
          • Google Sheets integration with eleapi
          • Helpcrunch CRM integration with eleapi
          • HelpShift integration with eleapi
          • Hubspot CRM integration with eleapi
          • Infobip CRM integration with eleapi
          • Jira CRM integration with eleapi
          • Insightly CRM integration with eleapi
          • MoEngage CRM integration with eleapi
          • NetHunt integration with eleapi
          • Nimble CRM integration with eleapi
          • Nutshell CRM integration with eleapi
          • Onpipeline integration with eleapi
          • Nocrm integration with eleapi
          • Pipedrive CRM integration with eleapi
          • Salesflare CRM integration with eleapi
          • SendInBlue integration with eleapi
          • Shipway Integration with eleapi
          • Wealthbox CRM integration with eleapi
          • SupportBee CRM integration with eleapi
          • Zendesk CRM integration with eleapi
          • Zoho CRM integration with eleapi
          • Zoho Desk integration with eleapi
          • Zoho Projects integration with eleapi
      • πŸ“–Inbox
        • πŸ“–Managing Contacts, Chats & Conversation
        • πŸ“–Creating Groups
      • πŸ“–Teams
      • πŸ“–Subscriptions
      • πŸ“–My Account
        • πŸ“–Configure Custom Attribute
        • πŸ“–Configure Tags
        • πŸ“–Configure Chat Status
      • πŸ“–Notifications
    • ❓Frequently asked questions (FAQs)
      • Onboarding FAQs
      • Bot Installation FAQs
      • Inbox FAQs
      • Profile, Team & Notifications FAQs
      • Analytics FAQs
      • Chat Flow FAQs
      • Bot Settings FAQs
      • WhatsApp FAQs
      • Subscription FAQs
      • ChatGPT FAQs
    • πŸ› οΈCommon Errors & Troubleshooting
  • πŸ“–Product Guides & Training
    • πŸ‘©β€πŸ’»WhatsApp Cloud API by Meta
      • βš™οΈSetting Up Your Facebook Business Manager
      • πŸ’°Meta Conversation Pricing for WhatsApp Cloud API
      • πŸ‘§Update WhatsApp Bot Profile
      • βœ…Getting a green tick on WhatsApp
    • βš™οΈWhatsApp Bot Creation with Automated onboarding
    • πŸ’‘Must know-how of eleapi
      • πŸ”€Manage & Use Custom Attributes
      • πŸ–₯️Call external APIs in your chat flows
      • πŸ‘¨β€πŸ’ΌManging team roles & Users
      • πŸ“¨Send WhatsApp notifications using the eleapi APIs
  • πŸ› οΈAPI References
    • πŸ“„Contacts & Chats APIs
      • Get All Contacts
      • Getting Groups/Segments
      • Add WhatsApp Contact
      • Delete WhatsApp Contact
      • Website Contacts & Meta Data
    • πŸ“„WhatsApp Cloud API
      • GET Templates List
      • POST WhatsApp Template Message
      • POST Send Message API
Powered by GitBook
On this page
  1. API References
  2. WhatsApp Cloud API

POST WhatsApp Template Message

API to send the WhatsApp template message

Parameter Description

  1. userName: refers to the name of the user we intend to send the message

  2. wa_id: refers to the WhatsApp number of the user we intend to send the message NOTE: The number must contain the country code without the plus sign

  3. templateId: refers to the ID of the template NOTE: Template must be approved before using this API

  4. params: is used for the variables used in the template, it is an empty array in the case of a plain text template with no variables. In case of variables in the template, please refer to the JSON below

API Endpoint

https://api.v7.express-chat.com/whatsapp-automation/wa/send-template?apiKey=*API KEY*

Request Headers

Header
Details

apiKey

API KEY

Query Params

Header
Details

apiKey

API KEY

Body

{
    "userName": "Divyansh Test",
    "wa_id": "9175080****",
    "templateId": "62b5c16bf*****cfa9a72335",
    "params": [
			{
				"type" : "header",
				 "parameters": [
                {
                            "type": "document",
                            "document": {
                            "link": "<https://www.africau.edu/images/default/sample.pdf>"
                            }
                }
            ]
			},
			{
                    "type": "body",
                    "parameters": [
                        {
                            "type": "text",
                            "text": "Abc"
                        },
                         {
                            "type": "text",
                            "text": "def"
                        },
                         {
                            "type": "text",
                            "text": "Monday"
                        }
                    ]
        }				
		 ]
}

Examples

Request

curl --location --request POST '<https://api.v7.express-chat.com/whatsapp-automation/wa/send-template?apiKey=> *Shared Separately*' \\
--header 'apiKey: *API KEY*' \\
--header 'Content-Type: application/json' \\
--data-raw '{
    "userName": "Test",
    "wa_id": "91885917****",
    "templateId": "63dba1617****52face07078",
    "params": [
        {
            "type": "header",
            "parameters": [
                {
                            "type": "document",
                            "document": {
                            "link": "<https://www.africau.edu/images/default/sample.pdf>"
                            }
                }
            ]
        },
        {
                    "type": "body",
                    "parameters": [
                        {
                            "type": "text",
                            "text": "Abc"
                        },
                         {
                            "type": "text",
                            "text": "def"
                        },
                         {
                            "type": "text",
                            "text": "Monday"
                        }
                    ]
        }

    ]
}'

Response

Headers

Header
Details

X-Powered-By

Express

Vary

Origin

Access-Control-Allow-Credentials

true

_user

61c1c2058e0****e9bb420f8

_bot

62e77a807f1****ecce980f0

whatsAppId

****bsIWcYgazd5ZDAK

Content-Type

application/json; charset=utf-8

Content-Length

507

ETag

W/"1fb-urlVjgGZAUBRNyxQDAOnZ3ONF1I"

Date

Wed, 03 Aug 2022 11:16:13 GMT

Connection

keep-alive

Keep-Alive

timeout=5

PreviousGET Templates ListNextPOST Send Message API

Last updated 7 months ago

πŸ› οΈ
πŸ“„