POST
/
api
/
messages
/
mediaUrl
curl --request POST \
  --url https://api.atendai.com/api/messages/mediaUrl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "number": "<string>",
  "url": "<string>",
  "type": "<string>",
  "mimeType": "<string>",
  "fileName": "<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.

url
string

URL do arquivo que será enviado.

type
string

O tipo de arquivo (image, video, audio ou document).

mimeType
string

MimeType do arquivo (image/png, image/jpg etc)

fileName
string

O nome do arquivo a ser enviado.

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