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 Send Message API

Use this API to send a WhatsApp message.

API Endpoint

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

Request Headers

Header
Value

apiKey

*API KEY*

Content-Type

application/json

Request Body

{
    "userName": "Test",
    "wa_id": "910987654321",
    "type": "text",
    "message": {
        "text": "hi"
    }
}

Parameters

Parameter
Type
Description

userName

string

The name of the user to whom the message is being sent.

wa_id

string

The WhatsApp number of the user to whom the message is being sent. The number must contain the country code without the plus sign.

type

string

The type of message being sent (e.g., text, image).

message.text

string

message that needs to sent

message.label

string

The caption you want to send along with the image (optional) Only if type is image

message.source

string

The image link (optional) Only if type is image

Example

curl --location 'https://api.v7.express-chat.com/whatsapp-automation/wa/send-message?apiKey=*API KEY*' \
--header 'apiKey: *API KEY*' \
--header 'Content-Type: application/json' \
--data '{
    "userName": "Test",
    "wa_id": "918859170007",
    "type": "text",
    "message": {
        "text": "hi"
    }
}'

Request Body

{
    "userName": "Test",
    "wa_id": "910987654321",
    "type": "image",
    "message": {
        "source": "https://imgv3.fotor.com/images/blog-cover-image/part-blurry-image.jpg",
        "label": "hey",
    }
}

Parameters

Parameter
Type
Description

userName

string

The name of the user to whom the message is being sent.

wa_id

string

The WhatsApp number of the user to whom the message is being sent. The number must contain the country code without the plus sign.

type

string

The type of message being sent (e.g., text, image, document).

message.source

string

The URL of the media being sent.

message.label

string

The text to attach to the media.

message.type

string

The type of media being sent (e.g., image, document).

Example

curl --location '<https://api.v7.eleapi.com/whatsapp-automation/wa/send-message?apiKey=*API KEY*>' \\\\
--header 'apiKey: *API KEY*' \\\\
--header 'Content-Type: application/json' \\\\
--data '{
    "userName": "Test",
    "wa_id": "910987654321",
    "type": "image",
    "message": {
        "source": "<https://imgv3.fotor.com/images/blog-cover-image/part-blurry-image.jpg>",
        "label": "hey",
        "type": "image"
    }
}'

Error Codes

PreviousPOST WhatsApp Template Message

Last updated 7 months ago

Refer to the for more information on error codes.

πŸ› οΈ
πŸ“„
official documentation