POST
/
api
/
messages
/
text
curl --request POST \
  --url https://api.atendai.com/api/messages/text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "number": "<string>",
  "message": "<string>",
  "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 com DDI (exemplo: 553175038350).

message
string

O conteúdo da mensagem que será enviada. É possível utilizar estilização de texto no padrão do WhatsApp.

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>"