Flowmatix Documentation

POST Send Message API

Was this helpful?

  • Happy
  • Normal
  • Sad

Use this API to send a WhatsApp message.

API Endpoint #

https://api.v7.flowmatix.ai/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"
    },
    "tags": ["test"]
}

Parameters #

Parameter Type Description
userNamestringThe name of the user to whom the message is being sent.
wa_idstringThe WhatsApp number of the user (must contain country code, no plus sign).
typestringThe type of message being sent (e.g., text, image).
message.textstringMessage that needs to be sent.
message.labelstringThe caption for image (optional, if type is image).
message.sourcestringThe image link (optional, if type is image).
tagsarrayTags are labels to organize and manage chats effectively.

Example #

curl --location 'https://api.v7.flowmatix.ai/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"
    },
    "tags": [ "test" ]
}'

Error Codes #

Refer to the official documentation for more information on error codes.

Shopping Basket