Messages

Send a static location

Sends a pinned geographic location to a WhatsApp contact or group through WUTS. Latitude and longitude are required; an optional name, address, URL, comment, and JPEG thumbnail (base64 or remote URL) can be attached.

POST
/send/location

Sends a pinned geographic location to a WhatsApp contact or group through WUTS. Latitude and longitude are required; an optional name, address, URL, comment, and JPEG thumbnail (base64 or remote URL) can be attached.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/send/location" \  -H "Content-Type: application/json" \  -d '{    "to": "5511999999999",    "latitude": -23.55052,    "longitude": -46.633308,    "name": "Praca da Se",    "address": "Praca da Se, Se, Sao Paulo - SP",    "url": "https://maps.example.com/?q=-23.55052,-46.633308",    "comment": "Meet me here at noon"  }'
{  "success": true,  "message_id": "3EB0X1A2B3C4D5E6F7",  "timestamp": "2026-06-15T12:00:00Z",  "message": "Location sent successfully"}
{  "error": "Invalid recipient JID: invalid number"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "error": "Failed to send location: timeout"}