This endpoint allows you to send service messages to recipients via whatsApp.
Method: POST
URL: https://business.me-mate.net/sendservicemessages/sendmessages
Headers:
Body:
to (string): The recipient’s number.
type (string): The type of message being sent.
document (object): Details of the document being sent.
link (string): The full URL of the document.
filename (string): The name of the document file.
recipient_type (string): The type of recipient (e.g., individual).
messaging_product (string): The messaging product being used (In this case use WhatsApp).
api_key (string): Your production API key. > How to get Your API key?
The response is in JSON format and includes the following fields:
messaging_product (string) - The messaging product used for sending the message.
contacts (array) - An array of objects containing input and wa_id for the contacts.
input (string) - The input provided for the contact.
wa_id (string) - The WhatsApp ID of the contact.
messages (array) - An array of objects containing the ID of the sent messages.