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

# Upload optional market image or video media

> Accepts one raw image or video body up to 5 MiB.



## OpenAPI

````yaml /api-reference/retardmarket_openapi.yml post /media
openapi: 3.0.3
info:
  title: retard.market V9 API
  version: 0.9.0
  description: >
    Projection-backed Robinhood Chain market data, conservative quotes, wallet
    portfolios,

    points, media uploads, and realtime invalidation for retard.market.


    Every endpoint requires a caller-specific VibeChain API key in the

    `API-KEY` header. Create one at

    https://docs.vibechain.com/api-reference/retardmarket-intro.
servers:
  - url: https://build.vibechain.com/api/retard/v9
security:
  - ApiKeyAuth: []
tags:
  - name: Runtime
  - name: Markets
  - name: Portfolio
  - name: Points
  - name: Media
  - name: Realtime
paths:
  /media:
    post:
      tags:
        - Media
      summary: Upload optional market image or video media
      description: Accepts one raw image or video body up to 5 MiB.
      operationId: uploadRetardV9Media
      parameters:
        - in: header
          name: X-File-Name
          required: false
          description: URL-encoded original filename
          schema:
            type: string
            maxLength: 120
      requestBody:
        required: true
        content:
          image/*:
            schema:
              type: string
              format: binary
          video/*:
            schema:
              type: string
              format: binary
      responses:
        '201':
          description: Uploaded media reference
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaUpload'
        '400':
          description: Empty media body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Media exceeds 5 MiB
        '415':
          description: Content type is not an image or video
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/ApiKeyOrRateLimit'
        '502':
          description: Upstream media provider rejected the upload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          $ref: '#/components/responses/ProductUnavailable'
components:
  schemas:
    MediaUpload:
      type: object
      required:
        - kind
        - mediaUrl
      properties:
        kind:
          type: string
          enum:
            - image
            - video
        mediaUrl:
          type: string
          format: uri
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    ApiKeyError:
      allOf:
        - $ref: '#/components/schemas/Error'
        - type: object
          required:
            - docs
          properties:
            error:
              type: string
              enum:
                - API_KEY_REQUIRED_OR_RATE_LIMITED
            docs:
              type: string
              format: uri
  responses:
    ApiKeyOrRateLimit:
      description: API key missing/invalid or the caller allowance is exhausted
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds until the current rate window resets
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiKeyError'
    ProductUnavailable:
      description: V9 or the requested subsystem is disabled or unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-KEY
      description: Caller-specific VibeChain API key created through `/apikey/create`.

````