POST
/
api
/
messages
/
media
curl --request POST \
  --url https://api.atendai.com/api/messages/media \
  --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.

files
file

O arquivo a ser enviado em bytes

message
string

Mensagem de texto enviada em conjunto com o arquivo.

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