Send Reply Button Service Message

View as Markdown
This endpoint allows you to send service messages to recipients via WhatsApp. ### Request - Method: POST - URL: `https://business.me-mate.net/sendservicemessages/sendmessages` - Headers: - Content-Type: application/json - Body: - to (string): The recipient's number. - type (string): The type of message, in this case, "interactive". - interactive (object): The interactive message details. - body (object): The body of the message. - text (string): The main body text of the message. - type (string): The type of interactive message, in this case, "button". - action (object): The action to be performed. - buttons (array): An array of buttons for the interactive message. - type (string): The type of button, in this case, "reply". - reply (object): Details of the reply button. - id (string): The ID of the reply button. - title (string): The text displayed on the reply button. - footer (object): The footer of the message. - text (string, optional): The text for the footer. - **header (object, required)**: The header of the message. - text (string): The text for the header. - type (string): The type of header, in this case, "text". - recipient_type (string, required): The type of recipient, in this case, "individual". - messaging_product (string, required): The messaging product, in this case, "whatsapp". - api_key (string, required): Your production API key.> [How to get Your API key?](#requirements) **Note: You Can use diffrent Header object for diffrent message header type like : Image Header, Video Header and Document Header.** - **For Image Header** ``` json "header": { "type": "image", "image": { "link": "Image full url" } } ``` - **For Video Header** ``` json "header": { "type": "video", "video": { "link": "video full url" } } ``` - **For Document Header** ``` json "header": { "type": "document", "document": { "link": "document full url", "filename": "file name" } } ``` #### Response - messaging_product (string): The messaging product used for the message(In this case WhatsApp). - contacts (array): An array of contacts. - input (string): The input from the contact. - wa_id (string): The WhatsApp ID of the contact. - messages (array): An array of messages. - id (string): The ID of the message sent (By Meta).

Request

This endpoint expects an object.
tostringRequired
typestringRequired
api_keystringRequired
interactiveobjectRequired
recipient_typestringRequired
messaging_productstringRequired

Response

OK
contactslist of objects
messageslist of objects
messaging_productstring