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

# List Media Assets



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/media/
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/media/:
    get:
      tags:
        - Media
      summary: List Media Assets
      operationId: list_media_assets_api_v1_media__get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Number of items per page
            default: 20
            title: Limit
          description: Number of items per page
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Number of items to skip
            default: 0
            title: Offset
          description: Number of items to skip
        - name: source_type
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/MediaSourceType'
              - type: 'null'
            description: Filter by source type
            title: Source Type
          description: Filter by source type
        - name: company_id
          in: query
          required: true
          schema:
            type: integer
            description: Company ID
            title: Company Id
          description: Company ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaListResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    MediaSourceType:
      type: string
      enum:
        - upload
        - stock
        - ai_generated
      title: MediaSourceType
    MediaListResponseSchema:
      properties:
        items:
          items:
            $ref: '#/components/schemas/MediaUploadResponseSchema'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - items
        - total
        - limit
        - offset
      title: MediaListResponseSchema
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MediaUploadResponseSchema:
      properties:
        id:
          type: integer
          title: Id
        filename:
          type: string
          title: Filename
        url:
          type: string
          title: Url
        file_size:
          type: integer
          title: File Size
        mime_type:
          type: string
          title: Mime Type
        width:
          anyOf:
            - type: integer
            - type: 'null'
          title: Width
        height:
          anyOf:
            - type: integer
            - type: 'null'
          title: Height
        source_type:
          $ref: '#/components/schemas/MediaSourceType'
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        external_metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: External Metadata
        tags:
          items:
            type: string
          type: array
          title: Tags
        alt_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Alt Text
        date_added:
          type: string
          format: date-time
          title: Date Added
        date_updated:
          type: string
          format: date-time
          title: Date Updated
      type: object
      required:
        - id
        - filename
        - url
        - file_size
        - mime_type
        - source_type
        - date_added
        - date_updated
      title: MediaUploadResponseSchema
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````