cURL
curl --request POST \ --url https://api.atendai.com/api/messages/media \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "number": "<string>", "files": "<string>", "message": "<string>", "autoClose": true } '
{ "message": "<success message>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
O número que receberá a mensagem.
O arquivo a ser enviado em bytes
Mensagem de texto enviada em conjunto com o arquivo.
Indica se o ticket deve ser fechado automaticamente ou não após essa mensagem.
Successful response
"<success message>"