Skip to main content

Video (VIDEO)

Video file message. The data structure uses the same media schema as IMAGE / AUDIO / FILE.

data schema

{
url: string;
mime: string;
path: string;
size: number;
fileName: string;
extension: string;
caption?: string;
}
FieldTypeDescription
urlstringPlayable URL
mimestringMIME type (e.g. video/mp4)
pathstringStorage path
sizenumberSize (bytes)
fileNamestringFile name
extensionstringExtension (e.g. mp4)
captionstring?Optional caption

Example

{
"id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
"createdAt": "2026-07-24T10:03:00.000Z",
"type": "VIDEO",
"nameOfSender": "Support Bot",
"isFromSupport": true,
"data": {
"url": "https://os.chatbot.aithinks.net/chat-assets/chats/.../demo.mp4",
"mime": "video/mp4",
"path": "chats/.../demo.mp4",
"size": 5242880,
"fileName": "demo.mp4",
"extension": "mp4",
"caption": "Ürün tanıtım videosu"
}
}

UI recommendation

  • Use HTML5 <video controls> with data.url.
  • Show caption if present.