Sending Location

Before testing this API, make sure you have an active WhatsApp session. To get started, send your join code to the sandbox number Learn more

WhatsApp offers an API to send location.

POST

https://gateway.lipachat.com/api/v1/whatsapp/location

Headers

Name
Value

Content-Type

application/json

apiKey

Get apiKey from App portal settings tabhttps://app.lipachat.com/app/settings

Body

Name
Type
Description

messageId

string

A unique identifier for the message. This will be used to track the message status and for deduplication purposes.

from

string

Sandbox number +254110090747 or your own WABA phone number.

to

string

Receiver phone number. It should start with a country code.

latitude

number

Location latitude in decimal degrees. e.g 35.929673

longtitude

number

Location longtitude in degrees. e.g -78.948237

name

string

Location name

address

string

Location address

curl --location 'https://gateway.lipachat.com/api/v1/whatsapp/location' \
--header 'apiKey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "messageId": "ee835207-a20b-49ef-b270-e29ed7da351e",
    "to": "2547XXXX",
    "from": "254110090747",
    "latitude": "35.929673",
    "longitude": "-78.948237",
    "name": "Church",
    "address": "Christ the King, off broad way"
}'

Response

{
      "timestamp": "2023-08-06T01:27:56.825898971",
      "data": {
            "messageId": "7addc006-07db-4fae-aac5-b285903b41d4",
            "waId": "wamid.HBgMMjU0NzE3NzQ2NTY1FQIAEnRgSRjJGRkMzNkQ0QUVENTIxQ0NBAA==",
            "status": "SENT",
            "statusDesc": "Message sent successfully"
      },
      "status": "success",
      "message": "",
      "errors": null
}

Last updated