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

# Video Message

> Send a video message to a specific contact within a workspace.

This endpoint allows you to send an video message to a contact. You can provide the video in two ways:

1. **Video URL**: Pass the video URL in the request body.
2. **Uploaded File**: Send the video as a file using `multipart/form-data`.

### File Field Requirements

* **file**:
  * **Required**
  * **Allowed MIME types**: `mp4`, `3gp`
  * **Maximum size**: 16 MB (`max:16384` KB)

### Request Options

* **Video URL Example (JSON):**
  ```json theme={null}
  {
    "file": "https://example.com/video.mp4"
  }
  ```

* **Uploaded File Example (multipart/form-data):**
  ```
  POST /workspaces/{workspace}/contacts/number/{number}/messages/video
  Content-Type: multipart/form-data

  file: [binary video file]
  ```

Choose the method that best fits your use case.


## OpenAPI

````yaml POST /workspaces/{workspace}/contacts/number/{number}/messages/video
openapi: 3.1.0
info:
  title: Lancepilot API
  description: API for Lancepilot
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://lancepilot.com/api/v3
security:
  - bearerAuth: []
paths:
  /workspaces/{workspace}/contacts/number/{number}/messages/video:
    post:
      tags:
        - Messages
      summary: Video Message
      description: Send a video message to a specific contact within a workspace.
      parameters:
        - name: workspace
          in: path
          description: ID of the workspace.
          required: true
          schema:
            type: string
            format: uuid
        - name: number
          in: path
          description: Number of the contact.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Message sending parameters.
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  description: Video URL.
                caption:
                  type: string
                  description: Optional caption for the video.
            examples:
              video:
                value:
                  file: >-
                    http://static.videezy.com/system/resources/previews/000/000/150/original/waterdrop.mp4
                  caption: this video send via contact id with json payload
      responses:
        '201':
          $ref: '#/components/responses/201'
        '401':
          $ref: '#/components/responses/401'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
components:
  responses:
    '201':
      description: ''
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: integer
                example: 201
              message:
                type: string
                example: Resource created successfully.
              data:
                type: object
                description: Created resource data.
            required:
              - status
              - message
              - data
    '401':
      description: ''
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: Unauthenticated.
            required:
              - message
    '404':
      description: ''
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: Resource not found.
              status:
                type: integer
                example: 404
            required:
              - message
              - status
    '422':
      description: ''
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                example: Validation error
              errors:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````