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

# Upload a Woku image or MP4 video

> Send one local file with a company secret key. Images up to 10 MB are optimized to WebP; MP4 videos can be up to 25 MB. Returns a Woku fileId for standalone Wokus or journey moments.



## OpenAPI

````yaml /openapi-v1.json post /v1/woku-media
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/woku-media:
    post:
      tags:
        - v1 - wokus
      summary: Upload a Woku image or MP4 video
      description: >-
        Send one local file with a company secret key. Images up to 10 MB are
        optimized to WebP; MP4 videos can be up to 25 MB. Returns a Woku fileId
        for standalone Wokus or journey moments.
      operationId: V1WokuMediaController_upload
      parameters: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '201':
          description: Media stored for reuse in Wokus and journey moments
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WokuMediaUploadResultDto'
        '400':
          description: Missing, invalid media or image over 10 MB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDto'
        '403':
          description: Invalid company key
        '413':
          description: The media upload exceeds 25 MB
      security:
        - bearer: []
components:
  schemas:
    WokuMediaUploadResultDto:
      type: object
      properties:
        fileId:
          type: string
          format: ObjectId
        filename:
          type: string
        type:
          type: string
          enum:
            - image
            - video
      required:
        - fileId
        - filename
        - type
    ValidationErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 400
        message:
          description: Array of validation error messages
          example:
            - email must be a valid email
            - password must be at least 8 characters
          type: array
          items:
            type: string
        error:
          type: string
          description: Error type
          example: Bad Request
      required:
        - statusCode
        - message
        - error
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````