⚙️
Channel360
HomeSign InSign Up
  • 🏠ChannelMobile Docs
  • Quick Start
    • Channel360 API
    • AgentChat API
    • Channel360 Guide
      • Dashboard
      • Templates
        • Template Creation
        • Template Configuration
      • Groups
        • Deleting Groups
        • Managing Group Details
      • Campaign
        • Campaign Creation
        • Campaign Statistics
      • Subscribers
        • Managing Subscribers
        • Subscriber Profile
  • Whatsapp Business API
    • WABA Prerequisites
    • WhatsApp Account Health
  • Our Products
    • Products
      • AgentChat
      • SMS
      • Broadcasting
      • ChatBot
  • API Usage
    • Using the Channel360 V1.1 API
      • Notifications
      • Templates
        • Create Templates
        • Read / Get Templates
        • Update Templates
        • Delete Templates
      • Webhooks
      • Conversations
        • Send Interactive Messages
        • Send Text Message
        • Send Media Message
          • Send Video Message
          • Send Image Message
          • Send File Message
        • Get Conversation History
  • Reference
    • API Reference
      • AgentChat API
      • Channel360 V1.1 API
  • FAQs
    • General FAQs
    • Channel360 FAQs
      • Templates
      • Notification Status
    • Technical FAQs
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. API Usage
  2. Using the Channel360 V1.1 API
  3. Conversations
  4. Send Media Message

Send Video Message

In this page we show you how to send a message containing a video.

PreviousSend Media MessageNextSend Image Message

Last updated 1 year ago

Was this helpful?

A video message refers to a video being included in the message.

The video needs to be in mp4 format and the size cannot be above 15MB.

Arguments
Explanations

mediaURL *required

Provides the URL where the file content is hosted or located.

text *required

The text content of the message. Maximum length of 4096 characters.

type *required

Description of media type.

Here's how to create a request for sending a video message to a WhatsApp user using the provided API endpoint.

{
    "type": "video",
    "text": "Hello!",
    "mediaUrl": "https://videolink.mp4"
}
curl --location 'channel360.co.za/v1.1/org/{{orgId}}/whatsapp/appuser/{{appUserId}}/reply' \
--data '{
    "type": "video",
    "text": "Hello!",
    "mediaUrl": "https://{{videoLink}}.mp4"
}'

Here is the provided YAML configuration below.

Send video request

post

API request to send a video

Path parameters
orgIdstringRequired
appUserstringRequired
Body
typestringRequiredExample: video
mediaUrlstringRequiredExample: https://videoLink.mp4
altTextstringRequiredExample: Here is an video attached to the message
Responses
200
Successfully Replied.
application/json
post
POST /v1.1/org/{orgId}/whatsapp/appuser/:{appUser}/reply/ HTTP/1.1
Host: www.channel360.co.za
Content-Type: application/json
Accept: */*
Content-Length: 104

{
  "type": "video",
  "mediaUrl": "https://videoLink.mp4",
  "altText": "Here is an video attached to the message"
}
200

Successfully Replied.

{
  "conversation": {
    "_id": "7g5a782574s53d87487537642",
    "appMakerLastRead": "8475635121.871",
    "appUserLastRead": "9593289247.783",
    "unreadCount": "3"
  },
  "message": {
    "_id": "662f89b15833c2b5bc9ae96e",
    "role": "appMaker",
    "authorId": "05thfg521jhf505h",
    "type": "video",
    "avatarUrl": "https://www.gravatar.com/avatar/00000000000000000000000000000000.png?s=200&d=mm",
    "mediaUrl": "https://videoLink.mp4",
    "mediaSize": "5190",
    "altText": "Here is a video attached to the message",
    "received": "1714391473.791",
    "mediaType": "video",
    "source": {
      "type": "api"
    }
  }
}