Location
Send a point on the map.
POST
/v1/numbers/{phone_number}/messages/sendReference →
curl -X POST "$WAPIU_API/v1/numbers/$WAPIU_NUMBER/messages/send" \ -H "Authorization: Bearer $WAPIU_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "recipient": "+393331112222", "message": { "message_type": "location", "location": { "latitude": 45.4642, "longitude": 9.19, "name": "Duomo di Milano", "address": "Piazza del Duomo, Milano" } } }'| Field | Type | Required | Description |
|---|---|---|---|
location.latitude | number | Yes | Decimal degrees. |
location.longitude | number | Yes | Decimal degrees. |
location.name | string | No | The place name. |
location.address | string | No | The address under the name. |
Delivered only within the 24-hour window. Outside it, send a template.
The response and errors are the same for every type: see Send a message.