With this method you can send text messages with action buttons that redirect to links, initiate calls, or provide standard responses.
Button sending is currently available, but there are some decisive factors for it to work. Check the button status topic for more information.
ATTENTIONSending all three button types simultaneously causes an error on WhatsApp Web. Combine CALL and URL buttons together, and send REPLY buttons separately.
Link URL (required for URL type, must start with http:// or https://).Tip: WhatsApp has a specific link for copying text. By passing this link in the url attribute, your button becomes a copy button: https://www.whatsapp.com/otp/code/?otp_type=COPY_CODE&code=otpyourcode
{ "phone": "551199999999", "message": "a message", "title": "if you want to add a title", "footer": "if you want to add a footer", "buttonActions": [ { "id": "1", "type": "CALL", "phone": "554498398733", "label": "Contact us" }, { "id": "2", "type": "URL", "url": "https://z-api.io", "label": "Visit our website" } ]}
REPLY button (separate):
{ "phone": "551199999999", "message": "a message", "title": "if you want to add a title", "footer": "if you want to add a footer", "buttonActions": [ { "id": "3", "type": "REPLY", "label": "Talk to an agent" } ]}