Skip to main content
POST
/
v1
/
channels
/
{channelId}
/
messages
Enviar vídeo
curl --request POST \
  --url https://api.hubmessage.io/v1/channels/{channelId}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "recipient": {
    "identifier": "5511999999999"
  },
  "content": {
    "type": "VIDEO",
    "attachments": [
      {
        "url": "https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4",
        "caption": "Confira esse vídeo!"
      }
    ]
  }
}
'
{
  "messageId": "wamid.HBgNNTU0NDk3MDUwNzg1FQIAERgSM0"
}

Overview

Sends a video message to a contact. The type field must be VIDEO and the video is sent via URL in the attachments array. Optionally, you can include a caption with the video.
This endpoint only works when the conversation window is open (24 hours).

Authorizations

Authorization
string
header
required

Secret Key gerada no painel de Segurança do Hub Message

Path Parameters

channelId
string
required

ID do canal

Example:

"SEU_CHANNEL_ID"

Body

application/json
recipient
object
required
content
object
required

Response

Mensagem enviada com sucesso

messageId
string

ID da mensagem enviada