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

# Get Index Resources

> Returns media resources from the system with caching mechanism



## OpenAPI

````yaml GET /index-resources
openapi: 3.0.1
info:
  title: Moonshine API
  description: Video Understanding API
  version: 1.0.0
servers:
  - url: https://api.usemoonshine.com
security: []
paths:
  /index-resources:
    get:
      description: Returns media resources from the system with caching mechanism
      parameters:
        - name: userid
          in: query
          description: The user ID to fetch media resources for
          required: true
          schema:
            type: string
        - name: token
          in: query
          description: User authentication token
          required: true
          schema:
            type: string
        - name: index
          in: query
          description: Name of the media index
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Media groups response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    file_name:
                      type: string
                      description: Name of the original file
                    file_id:
                      type: string
                      description: Unique identifier for the file
                    status:
                      type: string
                      description: Processing status of the file
                    upload_time:
                      type: string
                      format: date-time
                      description: When the file was uploaded
                    file_type:
                      type: string
                      description: Type of media file
                    is_large:
                      type: boolean
                      description: Whether the file is considered large
                    metadata:
                      type: object
                      properties:
                        fps:
                          type: number
                          description: Frames per second of the video
                    src:
                      type: string
                      format: uri
                      description: URL to access the media file
        '400':
          description: Bad request - invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string

````