Send Location Service Message
This endpoint allows you to send service messages to recipients using the 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
location. -
location (object): The location details.
-
name (string, optional): The name of the location.
-
address (string, optional): The full address of the location.
-
latitude (string): The latitude of the location.
-
longitude (string): The longitude of the location.
-
-
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 for this request is a JSON schema with the following structure:
-
messaging_product (string): The messaging product used.
-
contacts (array): An array of contacts with the following details:
-
input (string): The input details.
-
wa_id (string): The WhatsApp ID.
-
-
messages (array): An array of messages with the following details:
- id (string): The ID of the message (by Meta).
