WasenderApi - Low Cost WhatsApp API for Developers Send Location - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

Send Location

Messages

POST/api/send-message

Sends a message containing a location pin.

Send Location

Send a message containing a location pin. Provide the latitude and longitude within the location object parameter. You can optionally include a name and address for the location.

Parameters

NameTypeRequiredDescription
tostringYesRecipient phone number in E.164 format or, Group JID.
textstringNoThe text content of the message. Required if no media/contact/location is sent.
locationobjectYesLocation object.

Code Examples

curl -X POST "https://www.wasenderapi.com/api/send-message"
  -H "Authorization: Bearer YOUR_API_KEY"
  -H "Content-Type: application/json"
  -d '{
      "to": "+1234567890",
      "text": "Our office location",
      "location": {
          "latitude": 37.7749,
          "longitude": -122.4194,
          "name": "Company HQ",
          "address": "123 Business St, San Francisco, CA 94105"
      }
  }'

Response Examples

{
  "success": true,
  "data": {
    "msgId": 100000,
    "jid": "+123456789",
    "status": "in_progress"
  }
}