> ## Documentation Index
> Fetch the complete documentation index at: https://docs.briq.tz/llms.txt
> Use this file to discover all available pages before exploring further.

# Send a video

> Send an MP4/3GPP video (≤16 MB). Optional caption. Needs an open window.

Send a video with an optional caption. Provide `media_url` (a public HTTPS link) or `file_id`. WhatsApp fetches the URL at send time, so it must be reachable then and serve the correct `Content-Type`. Needs an **open 24-hour window**. Async: returns **202** `{ message_id, status: "pending" }`.

<Info>
  **Constraints** — formats: MP4 (`video/mp4`), 3GPP (`video/3gpp`); codecs H.264 video + AAC audio. Max size: 16 MB. A `131053` error means the file is unsupported or too large.
</Info>


## OpenAPI

````yaml openapi.json POST /v1/whatsapp/messages/video
openapi: 3.1.0
info:
  title: Briq API
  description: Karibu Briq API Documentation
  version: '0.8'
servers:
  - url: https://karibu.briq.tz
    description: Production
  - url: https://pre-release.karibu.briq.tz
    description: Pre-release
  - url: http://karibu.briq.tz
    description: LocalPass
security: []
paths:
  /v1/whatsapp/messages/video:
    post:
      tags:
        - Karibu-Whatsapp-Messages
      summary: Send a video
      description: Send an MP4/3GPP video (≤16 MB). Optional caption. Needs an open window.
      operationId: wa_send_video_message
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                to:
                  type: string
                  minLength: 7
                  maxLength: 20
                  pattern: ^\+?[1-9]\d{6,17}$
                  description: >-
                    Recipient phone in E.164 digits (optional leading +), e.g.
                    255712345678. The number you are messaging. Pair with
                    `sender`.
                sender:
                  type: string
                  maxLength: 64
                  description: >-
                    Which of your WhatsApp numbers to send from (number or
                    phone_number_id). Pair with `to` to target the conversation.
                    Optional when your workspace has a single active sender.
                    Preferred over sender_id.
                conversation_id:
                  type: string
                  format: uuid
                  description: >-
                    Alternative to `sender`. The id of an existing one-to-one
                    thread; recipient and sender are taken from it, so `to` /
                    `sender` / `sender_id` are ignored. Use this to pin a
                    precise conversation when the same recipient can be reached
                    through more than one of your senders.
                sender_id:
                  type: string
                  format: uuid
                  description: 'Deprecated: use `sender`.'
                media_url:
                  type: string
                  description: Publicly reachable media URL. Provide this or file_id.
                file_id:
                  type: string
                  description: >-
                    Uploaded media file id (first-party). Provide this or
                    media_url.
                caption:
                  type: string
                  maxLength: 1024
                  description: Optional caption.
            examples:
              example:
                value:
                  to: '255712345678'
                  media_url: https://example.com/demo.mp4
                  caption: Quick demo
      responses:
        '200':
          description: Sent immediately (provider acknowledged).
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/WaSendData'
                  errors:
                    type: array
                    nullable: true
                    items:
                      $ref: '#/components/schemas/WaApiError'
                  request_id:
                    type: string
        '202':
          description: Queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/WaSendData'
                  errors:
                    type: array
                    nullable: true
                    items:
                      $ref: '#/components/schemas/WaApiError'
                  request_id:
                    type: string
        '400':
          description: No active sender or template parameter count mismatch.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WaErrorEnvelope'
        '403':
          description: API key is not linked to a workspace (WORKSPACE_REQUIRED).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WaErrorEnvelope'
        '404':
          description: Template or sender not found in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WaErrorEnvelope'
        '422':
          description: >-
            Validation error, closed 24h window, recipient unreachable, or a
            provider failure (PROVIDER_UNAVAILABLE / WHATSAPP_REAUTH_REQUIRED /
            SEND_FAILED). On provider failures, data.message_id is present and
            pollable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WaErrorEnvelope'
components:
  schemas:
    WaSendData:
      type: object
      properties:
        message_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            Internal message id. Use it with GET
            /v1/whatsapp/messages/{message_id}.
        conversation_id:
          type: string
          format: uuid
          nullable: true
        sender_id:
          type: string
          format: uuid
          nullable: true
          description: Internal UUID of the sender the message went out on.
        sender:
          type: string
          nullable: true
          example: '1107264639145282'
          description: The phone_number_id of the sender the message went out on.
        provider_message_id:
          type: string
          nullable: true
          description: WhatsApp wamid once the message is sent; null while queued.
        status:
          type: string
          example: pending
          enum:
            - pending
            - sent
            - failed
    WaApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        field:
          type: string
          nullable: true
    WaErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: false
        data:
          type: object
          nullable: true
          description: >-
            On a failed send that still produced a record, carries the pollable
            message_id with status='failed'; otherwise null.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/WaApiError'
        request_id:
          type: string

````