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

# List Media Files

> List non-expired media files belonging to the authenticated team. Default page size is 100; `limit` is capped at 100. See [How to Use](/file-api/how-to-use) for the full workflow.



## OpenAPI

````yaml /file-api/media-files.json get /api/v1/media/files
openapi: 3.1.0
info:
  title: Media Files API
  description: >-
    Upload, list, and delete media files for use with Modellix prediction APIs.
    Authenticate with an API Key. This API is not billed. Uploaded files are
    retained for a limited time (default 7 days).
  version: 1.0.0
  contact:
    name: Modellix API Support
    email: support@modellix.ai
servers:
  - url: https://api.modellix.ai/
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v1/media/files:
    get:
      summary: List Media Files
      description: >-
        List non-expired media files belonging to the authenticated team.
        Default page size is 100; `limit` is capped at 100. See [How to
        Use](/file-api/how-to-use) for the full workflow.
      operationId: listMediaFiles
      parameters:
        - name: limit
          in: query
          required: false
          description: Page size (default 100, max 100)
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 100
        - name: offset
          in: query
          required: false
          description: Number of items to skip (default 0)
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: List of files
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMediaFilesResponse'
              examples:
                success:
                  summary: Team files
                  value:
                    code: 0
                    message: success
                    data:
                      items:
                        - file_id: 550e8400-e29b-41d4-a716-446655440000
                          type: image
                          url: >-
                            https://file.modellix.ai/example/550e8400-e29b-41d4-a716-446655440000.png
                          filename: image.png
                          size: 102400
                          created_at: 1784084400000
                      total: 1
                      limit: 100
                      offset: 0
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    ListMediaFilesResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          example: 0
        message:
          type: string
          example: success
        data:
          $ref: '#/components/schemas/ListMediaFilesData'
    ListMediaFilesData:
      type: object
      required:
        - items
        - total
        - limit
        - offset
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/MediaFileItem'
        total:
          type: integer
          description: Total number of files that have not expired
          example: 1
        limit:
          type: integer
          example: 100
        offset:
          type: integer
          example: 0
    ErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: Error code (matches HTTP status)
          example: 400
        message:
          type: string
          description: 'Error message in the form Category: detail'
          example: 'Invalid format: unsupported file format'
    MediaFileItem:
      type: object
      required:
        - file_id
        - type
        - url
        - filename
        - size
        - created_at
      properties:
        file_id:
          type: string
          format: uuid
          description: Unique file identifier
          example: 550e8400-e29b-41d4-a716-446655440000
        type:
          $ref: '#/components/schemas/MediaType'
        url:
          type: string
          format: uri
          description: Public URL of the uploaded file
          example: >-
            https://file.modellix.ai/example/550e8400-e29b-41d4-a716-446655440000.png
        filename:
          type: string
          description: Original filename from the client
          example: image.png
        size:
          type: integer
          format: int64
          description: File size in bytes
          example: 102400
        created_at:
          type: integer
          format: int64
          description: Upload time as Unix timestamp in milliseconds
          example: 1784084400000
    MediaType:
      type: string
      enum:
        - image
        - video
        - audio
      description: 'Media category: image, video, or audio'
  responses:
    Unauthorized:
      description: Unauthorized — Invalid or missing API Key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 401
            message: 'Authentication failed: invalid API key'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 500
            message: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API Key authentication. Format: Bearer YOUR_API_KEY'

````