Skip to main content
POST
/
messages
/
location
Send location message
curl --request POST \
  --url https://messenger-public-api.cogfy.com/messages/location \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "from": "<string>",
  "to": "<string>",
  "location": {
    "longitude": 123,
    "latitude": 123,
    "name": "<string>",
    "address": "<string>"
  }
}'
{
  "id": "<string>"
}

Authorizations

api-key
string
header
required

Body

application/json
from
string
to
string
location
object

Response

200 - application/json
id
string