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

# Upload template media

> Uploads a media file for use in a WhatsApp template header.



## OpenAPI

````yaml /api-reference/voxys_whatsapp_swagger.json post /api/v1/accounts/{account_id}/whatsapp_templates/upload_media
openapi: 3.1.0
info:
  title: Voxys Connect – Extended Features
  description: >-
    API documentation for Voxys Connect extended features: Campaigns, WhatsApp
    Templates & Flows, Appointments, Scheduled Messages, Projects, Internal
    Channels, Customer Pulse, and Reports.
  version: 1.0.0
  contact:
    email: support@voxys.ai
  license:
    name: MIT License
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://connect.voxys.ai
security:
  - userApiKey: []
tags:
  - name: WhatsApp Templates
    description: Create, manage, and submit WhatsApp message templates to Meta
  - name: WhatsApp Flows
    description: Build and publish interactive WhatsApp Flows
paths:
  /api/v1/accounts/{account_id}/whatsapp_templates/upload_media:
    post:
      tags:
        - WhatsApp Templates
      summary: Upload template media
      description: Uploads a media file for use in a WhatsApp template header.
      operationId: uploadWhatsappTemplateMedia
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - media_file
                - inbox_id
              properties:
                media_file:
                  type: string
                  format: binary
                inbox_id:
                  type: integer
                  description: WhatsApp inbox ID
      responses:
        '200':
          description: Media uploaded
          content:
            application/json:
              schema:
                type: object
                properties:
                  media_id:
                    type: string
                  url:
                    type: string
        '401':
          $ref: '#/components/responses/unauthorized'
        '422':
          $ref: '#/components/responses/unprocessable'
components:
  responses:
    unauthorized:
      description: Authentication failed – invalid or missing api_access_token
    unprocessable:
      description: Unprocessable entity – validation errors
      content:
        application/json:
          schema:
            type: object
            properties:
              errors:
                type: array
                items:
                  type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        All API requests must include the `api_access_token` header with a valid
        agent or administrator token.

````