Skip to main content
POST
cURL

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

Body Parameters

Status Codes

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

Usage Example

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.