Skip to main content
POST
/
api
/
sendLocation
cURL
curl --request POST \
  --url https://{host}/api/sendLocation \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "chatId": "5511999999999@c.us",
  "latitude": -23.5505,
  "longitude": -46.6333,
  "title": "Paulista Avenue, São Paulo",
  "reply_to": null,
  "session": "my-session"
}'
{
  "success": true,
  "messageId": "3EB0XXXXXX"
}

Description

This endpoint allows you to send a geographic location (latitude and longitude) to individual contacts or groups on WhatsApp. Optionally, you can include a name/description for the location.

Body

{
  "sessionId": "my-session",
  "jid": "5511999999999@s.whatsapp.net",
  "location": {
    "latitude": -23.5505,
    "longitude": -46.6333,
    "name": "Meu Group"
  }
}

Body Parameters

PropertyTypeRequiredDescription
sessionIdstring✅ YesAuthenticated session ID that will send the location
jidstring✅ YesRecipient identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups
locationobject✅ YesObject containing the location information
location.latitudenumber✅ YesLocation latitude (example: -23.5505)
location.longitudenumber✅ YesLocation longitude (example: -46.6333)
location.namestring❌ NoLocation name or description (example: Avenida Paulista, São Paulo)
{
  "success": true,
  "messageId": "3EB0XXXXXX"
}

Status Codes

  • 200 - Location sent successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized session
  • 404 - Session not found

Usage Example

curl -X POST https://api.wappfy.com.br/api/sendLocation \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "my-session",
    "jid": "5511999999999@s.whatsapp.net",
    "location": {
      "latitude": -23.5505,
      "longitude": -46.6333,
      "name": "Avenida Paulista, São Paulo"
    }
  }'

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Body

application/json
chatId
string
required

Chat ID (WhatsApp JID)

Example:

"5511999999999@c.us"

latitude
number
required

Location latitude

Example:

-23.5505

longitude
number
required

Location longitude

Example:

-46.6333

title
string
required

Location name or description

Example:

"Paulista Avenue, São Paulo"

session
string
required

Session name (instanceName)

Example:

"my-session"

reply_to
string

Message ID you want to reply to

Example:

null

Response

201 - application/json

The response is of type object.

I