Skip to main content
POST

Overview

Method for sending messages with action buttons. There are three button types:
  • CALL — Button to call a phone number
  • URL — Button to open a link
  • REPLY — Quick reply button
Do not combine all three button types in the same message. Send CALL + URL buttons together, and REPLY buttons separately. Combining all of them causes errors on WhatsApp Web.
For copy-code buttons, use the URL format: https://www.whatsapp.com/otp/code/?otp_type=COPY_CODE&code=YOUR_CODE

Authorizations

Authorization
string
header
required

Secret Key generated in the Omni Z-API Security panel

Body

application/json
phone
string
required

Recipient phone number (country code + area code + number)

Example:

"5511999999999"

message
string
required

Message text

buttonActions
object[]
required

List of action buttons

title
string

Message title

Message footer

delayMessage
integer

Delay in seconds before sending (1-15)

Required range: 1 <= x <= 15

Response

Message sent successfully

zaapId
string

Internal identifier

messageId
string

WhatsApp message ID

id
string

Same value as messageId (compatibility)