cURL
curl --request POST \ --url https://messenger-public-api.cogfy.com/messages/location \ --header 'Content-Type: application/json' \ --header 'api-key: <api-key>' \ --data '{ "from": "<string>", "to": "<string>", "location": { "longitude": 123, "latitude": 123, "name": "<string>", "address": "<string>" } }'
{ "id": "<string>" }
Sends a location message with coordinates to a phone number. Requires that the recipient has messaged the business in the last 24 hours.
Show child attributes