Call to Action Button. In a service or marketing message, it is a clickable button or text link that prompts the recipient to take an immediate next step—such as opening a website, completing a purchase, or tracking an order.
The endpoint https://business.me-mate.net/sendservicemessages/sendmessages is a POST request used to send service messages.
Method: POST
URL: https://business.me-mate.net/sendservicemessages/sendmessages
Headers:
Body:
to (string): The recipient’s number.
type (string): The type of message, in this case “interactive”.
interactive (object): An object containing the interactive message details.
body (object): The body of the interactive message.
type (string): The type of interactive message, in this case “cta_url”.
action (object): The action to be performed with the interactive message.
name (string): The name of the action, in this case “cta_url”.
parameters (object): Parameters related to the action.
url (string): The URL for the call to action.
display_text (string): The display text for the call to action.
footer (object): The footer of the interactive message.
header (object): The header of the interactive message.
text (string): The text content of the message header.
type (string): The type of header, in this case “text”.
Note : You can use Different Types of message Header (like: Image, video and Document) same as Reply Button
recipient_type (string): The type of recipient, in this case “individual”.
messaging_product (string): The messaging product, in this case “whatsapp”.
api_key (string): The production API key. > How to get Your API key?
The response for this request is a JSON object with the following properties:
messaging_product (string): In this case WhatsApp .
contacts (array): An array of objects containing contact details.
input (string): The input from the contact.
wa_id (string): The WhatsApp ID of the contact.
messages (array): An array of message objects.