Skip to main content
POST
/
{channelId}
/
whatsapp_messages
/
send
Send WhatsApp message
curl --request POST \
  --url https://api.heyy.io/api/v2.0/{channelId}/whatsapp_messages/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phoneNumber": "<string>",
  "type": "TEMPLATE",
  "fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "messageTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "variables": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "scheduledAt": "2023-11-07T05:31:56Z"
}'
{
  "data": {
    "id": "<string>",
    "phoneNumber": "<string>",
    "message": "<any>",
    "status": "<string>",
    "createdAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

channelId
string
required

Body

application/json
  • Option 1
  • Option 2
  • Option 3
  • Option 4
phoneNumber
string
required
type
enum<string>
required
Available options:
TEMPLATE
messageTemplateId
string<uuid>
required
fileId
string<uuid>
variables
object[]
scheduledAt
string<date-time>

Response

200 - application/json
data
object
required