Sending A Location To Phone Number Or Group
Request test
Request URL
https://connectivity.pk/api/messages/location?instance_id={{instance_id}}&token={{token}}
Request body
|
token
*Required
|
Your API Authorization code
|
|
to
*Required
|
Phone number with international format e.g. +14155552671
or chatID for contact or group e.g 14155552671@c.us or 14155552671-441234567890@g.us |
|
address
*Required
|
Text under the location.
Supports two lines. To use two lines, use the \n symbol. Max length: 300 char |
|
lat
*Required
|
Latitude
Example: 25.197197 |
|
lng
*Required
|
Longitude
Example: 55.2721877 |
|
priority
|
Priority controls order and delay.
Order: priority = 0 : High priority = 1-9 : Normal priority = 10+ : Low Delay: If priority is provided, delay = priority seconds (0-120). If priority is missing, delay comes from instance_settings: - queued <= 10 -> send_delay - queued > 10 -> send_delay_max. Contact Us |
|
scheduled_at
|
Optional scheduled send time.
Easy formats (server timezone): - 2026-02-02 03:30 PM - 02-02-2026 15:30 - 2026/02/02 15:30 If in the past, it sends immediately. |
|
referenceId
|
Your custom reference ID for this message
Contact Us |
|
msgId
|
Response
No response yet.
Request samples
Note:
don't forget to URL encode your query params like
base64 or utf-8