POST
/
api
/
messages
/
location
curl --request POST \
  --url https://api.atendai.com/api/messages/location \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "number": "<string>",
  "locdata": {
    "latitude": 25.65239387554923,
    "longitude": 25.65239387554923,
    "name": "Al Bayt Stadium",
    "address": "2022 World Cup Opening Venue in Qatar",
    "footerText": "Footer Text"
  },
  "autoClose": true
}'
{
  "message": "<success message>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
number
string

O número que receberá a mensagem.

locdata
object

Os dados de localização em um objeto JSON. Veja o modelo.

autoClose
boolean

Indica se o ticket deve ser fechado automaticamente ou não após essa mensagem.

Response

200
application/json
Successful response
message
string
required
Example:

"<success message>"