Send Message
Send Location
Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- POSTUpdate Group Picture
- POSTUpdate Group Subject
- POSTUpdate Group Description
- GETFetch Invite Code
- POSTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- POSTUpdate Group Members
- POSTUpdate Group Setting
- POSTToggle Ephemeral
- DELLeave Group
Typebot
OpenAI
Evolution Bot
Dify
Flowise
Chatwoot
Websocket
RabbitMQ
Send Message
Send Location
POST
/
message
/
sendLocation
/
{instance}
curl --request POST \
--url https://{server-url}/message/sendLocation/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"name": "<string>",
"address": "<string>",
"latitude": 123,
"longitude": 123,
"delay": 123,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentionsEveryOne": true,
"mentioned": [
"<string>"
]
}'
{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE51B6FF4470AF9"
},
"message": {
"locationMessage": {
"degreesLatitude": -19.93359,
"degreesLongitude": -43.93851,
"name": "Palácio da Liberdade",
"address": "Praça da Liberdade, Belo Horizonte, MG 30140-050",
"contextInfo": {}
}
},
"messageTimestamp": "1717779606",
"status": "PENDING"
}
Authorizations
Your authorization key header
Path Parameters
ID of the instance to connect
Body
application/json
Response
201 - application/json
Created
The response is of type object
.
curl --request POST \
--url https://{server-url}/message/sendLocation/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"name": "<string>",
"address": "<string>",
"latitude": 123,
"longitude": 123,
"delay": 123,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentionsEveryOne": true,
"mentioned": [
"<string>"
]
}'
{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE51B6FF4470AF9"
},
"message": {
"locationMessage": {
"degreesLatitude": -19.93359,
"degreesLongitude": -43.93851,
"name": "Palácio da Liberdade",
"address": "Praça da Liberdade, Belo Horizonte, MG 30140-050",
"contextInfo": {}
}
},
"messageTimestamp": "1717779606",
"status": "PENDING"
}