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

# List Media

> List the files your API account has uploaded, newest first.



## OpenAPI

````yaml GET /services/core/open_api/v1/media
openapi: 3.1.0
info:
  title: Oliver Partner API
  description: API for partners to interact with Oliver
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://partner-api.getoliver.com
security:
  - bearerAuth: []
paths:
  /services/core/open_api/v1/media:
    get:
      summary: List media
      description: List the files your API account has uploaded, newest first.
      parameters:
        - name: X-Client-Id
          in: header
          required: false
          description: >-
            Optional. Files belong to your API account, not a practice, and work
            at every practice you can send to.
          schema:
            type: string
        - name: page
          in: query
          description: Page number, starting at 0
          required: false
          schema:
            type: integer
            default: 0
        - name: per_page
          in: query
          description: Number of results per page. Max is 100.
          required: false
          schema:
            type: integer
            default: 50
      responses:
        '200':
          description: Your files
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/MediaListResponse'
                  message:
                    type: string
                    nullable: true
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralError'
components:
  schemas:
    MediaListResponse:
      type: object
      required:
        - page
        - per_page
        - total_pages
        - total_count
        - content
      properties:
        page:
          type: integer
        per_page:
          type: integer
        total_pages:
          type: integer
        total_count:
          type: integer
        content:
          type: array
          description: Your files, newest first
          items:
            $ref: '#/components/schemas/Media'
    GeneralError:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
    Media:
      type: object
      properties:
        media_id:
          type: string
          description: Pass this as `media_id` in message and AI Outbound content.
          example: 6f1c2b9e-3d4a-4c7e-9b1a-2e5f8d7c6a10
        url:
          type: string
          format: uri
          description: >-
            The file's public URL on Oliver's CDN. A replace gives the file a
            new URL.
          example: >-
            https://cdn.getoliver.com/m/0d3c9a52-8f1e-4b7a-a6c4-5e2f1b9d8c37/image.png
        content_type:
          type: string
          enum:
            - image/jpeg
            - image/png
            - image/gif
            - video/mp4
          description: >-
            Detected from the file itself, not from the upload's headers or file
            name.
        size_bytes:
          type: integer
          example: 182344
        file_name:
          type: string
          nullable: true
          description: The uploaded file's name, or the last part of the imported URL.
          example: rabies-reminder.png
        reference_id:
          type: string
          nullable: true
          example: rabies-reminder
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
          description: When the file was last uploaded or replaced.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.