Send Document 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 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?](#requirements) ### Response 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. - **id** (string) - The ID of the sent message.

Request

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

Response

OK
contactslist of objects
messageslist of objects
messaging_productstring