Whats App

Sending Message (Text or Media)

POST
/conversation/wab/v1/messages/

Send a WhatsApp text or media message. The documentation presents Sending Text Message and Sending Media Message as separate pages for the same endpoint; both payloads are accepted here.

--- Text --- Use the messages node to send text messages to your customers.

--- Media --- Use this API to send messages containing audio, documents, images, stickers, or videos to your customers.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Request Body

application/json

to?string

the mobile number

Default"123456789"
type?string
Default"text"
recipient_type?string
Default"individual"
preview_url?boolean
Defaultfalse
text?string
Formatjson
Default"{ \"body\": \"<Message Text>\" }"

Response Body

application/json

curl -X POST "https://example.com/conversation/wab/v1/messages/" \  -H "Content-Type: application/json" \  -d '{    "to": "2010xxxxxxxx",    "type": "image",    "recipient_type": "individual",    "image": {      "id": "<Media Id, from Media API>"    }  }'
"{\n    \"messages\": [\n        {\n            \"id\": \"<<generated id>>\"\n        }\n    ]\n}\n"