Skip to main content
POST
/
v1
/
zaap
/
message
Send a single message
curl --request POST \
  --url https://api.vazapay.com/v1/zaap/message \
  --header 'Content-Type: application/json' \
  --header 'z-api-key: <api-key>' \
  --data '{
  "text": "<string>",
  "to": {
    "whatsapp": "<string>",
    "telegram": "<string>",
    "sms": "<string>"
  }
}'
{
  "status": "created",
  "message_id": "xxxxxxxxxxx",
  "created_at": "2023-10-05 02:22:11"
}

Body

text
string
required
This is text that will be sent.
to
object
required
Each key in this object represents a recipient channel and their identifier. You can specify one or all channels you have configured.

Response

created_at
string
The timestamp this message was sent
message_id
string
The refrence id of the message request. This will be used to identify the message
status
string
The status of the messageAvailable options: created, failed, success
  • created - A message has been created and is wating to be delivered.
  • failed - A message failed to be delivered to one or more channels.
  • success - A messages was successfully delivered to all channels.
{
  "status": "created",
  "message_id": "xxxxxxxxxxx",
  "created_at": "2023-10-05 02:22:11"
}