Send Audio Service Message
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, e.g., “audio”. -
audio(object) - The audio content with a link to the full audio URL.link(string) - The full audio URL.
-
recipient_type(string) - The type of recipient, e.g., “individual”. -
messaging_product(string) - “whatsapp”. -
api_key(string) - Your production API key. > How to get Your API key?
Response
The response includes the following fields:
-
messaging_product(string) - The messaging product used. -
contacts(array) - An array of contacts with their input and WhatsApp ID.-
input(string) - The input. -
wa_id(string) - The WhatsApp ID.
-
-
messages(array) - An array of messages with their IDs.id(string) - The message ID.
