POST
/
send-message
/
location
cURL
curl --request POST \
  --url https://api.crunchz.app/api/send-message/location \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contact_id": "xxx@c.us",
  "latitude": "38.8937255",
  "longitude": "-77.0969763",
  "title": "Our office",
  "reply_to": "message_id_here"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "status": "<string>",
    "message": "<string>",
    "timestamp": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
contact_id
string
required

Contact ID.

Required string length: 10 - 50
Example:

"xxx@c.us"

latitude
string
required

Latitude of the location..

Example:

"38.8937255"

longitude
string
required

Longitude of the location.

Example:

"-77.0969763"

title
string
required

Title of the location.

Required string length: 1 - 100
Example:

"Our office"

reply_to
string

Message ID to reply to (optional)

Required string length: 1 - 100
Example:

"message_id_here"

Response

LocationMessageResource

success
boolean
required

The success status of response.

message
string
required

The message of response.

data
object
required