Send Location Service Message

View as Markdown
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?](#requirements) ### 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).

Request

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

Response

OK
contactslist of objects
messageslist of objects
messaging_productstring