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

# Files

> List of files with stats and pages. With an exact `path` it returns one file. 50 items by default, up to 100.



## OpenAPI

````yaml en/openapi/en-api-v3-openapi.yaml GET /cdn/assets
openapi: 3.1.0
info:
  title: ER:LC Russia API V3
  description: >-
    ER:LC Russia API for servers, users, CDN, redirects, subscriptions, and
    access keys.
  version: 3.0.0
servers:
  - url: https://api.erlcrussia.com/v3
    description: Production server (com)
  - url: https://api.erlcrussia.xyz/v3
    description: Backup server (xyz)
security: []
tags:
  - name: ER:LC Server
    description: Obtaining status, online, lists of players and staff of the ER:LC server.
  - name: ER:LC Teams
    description: Sending and queuing in-game server commands (:h, :m, :kick, :ban, etc.).
  - name: Economics
    description: >-
      Interaction with the economic system (users, businesses, mafias, stores,
      advertising).
  - name: Statistics API
    description: >-
      High-performance obtaining statistics of discord servers and game servers
      (online, participants, bots).
  - name: Verification API
    description: Search and comparison of Discord ID and Roblox ID accounts.
  - name: CDN Assets
    description: >-
      Load, manage, statistic and clear MinIO/Edge CDN object storage file
      cache.
  - name: CDN Folders
    description: Hierarchical structure and sorting of CDN media library folders.
  - name: Punishment API
    description: Manage the balance and transaction history of players' points.
  - name: Subscriptions API
    description: >-
      Catalog of plans, FunPay orders, accrual of benefits and activation of
      subscriptions.
  - name: Authorization API
    description: >-
      Login via Discord and Roblox OAuth2, manage user sessions and link
      accounts.
  - name: Management API - WebSocket Keys
    description: Managing access keys to the WebSocket gateway and channel subscriptions.
  - name: Management API - Webhooks
    description: Registration, accessibility validation and monitoring of custom webhooks.
  - name: Control API - Panel
    description: >-
      Management of users, subscriptions, tariffs, manual balance and system
      statistics.
  - name: State API
    description: >-
      Monitoring the performance of the service, connections to PostgreSQL and
      Redis.
  - name: AI Audio
  - name: AI Studio
  - name: AI administration
  - name: API Keys
  - name: Admin API - Servers
  - name: Administration of E-Coins
  - name: CDN
  - name: CDN Domains
  - name: CDN V3
  - name: Custom Webhooks
  - name: Management API - Servers
  - name: Management API - Tokens
  - name: Organization redirects V3
  - name: Private files and library
  - name: Рекламные кампании V3
paths:
  /cdn/assets:
    get:
      tags:
        - CDN Assets
      summary: Files
      description: >-
        List of files with stats and pages. With an exact `path` it returns one
        file. 50 items by default, up to 100.
      parameters:
        - name: domain
          in: query
          required: false
          description: Пространство имён (первый сегмент пути файла).
          schema:
            type: string
          example: acme
        - name: path
          in: query
          required: false
          description: Точный путь ассета внутри пространства имён.
          schema:
            type: string
          example: branding/logo.png
        - name: prefix
          in: query
          required: false
          description: Префикс пути для выборки группы файлов.
          schema:
            type: string
          example: branding/
        - name: folderId
          in: query
          required: false
          description: >
            ID папки UI. Папка — только визуальная группировка, на путь файла не
            влияет.

            `root` или `null` — файлы без папки, `all` — без фильтра.
          schema:
            type: string
          example: root
        - name: search
          in: query
          required: false
          description: Поиск по имени, слагу и полному пути.
          schema:
            type: string
        - name: sourceType
          in: query
          required: false
          description: Фильтр по типу источника.
          schema:
            type: string
            enum:
              - LOCAL
              - EXTERNAL
              - all
        - name: isPinned
          in: query
          required: false
          description: Фильтр по закреплению.
          schema:
            type: boolean
        - name: page
          in: query
          required: false
          description: Номер страницы, начиная с 1.
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          required: false
          description: Количество элементов на странице, максимум 100.
          schema:
            type: integer
            default: 50
            maximum: 100
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                      asset:
                        $ref: '#/components/schemas/CdnAsset'
                    required:
                      - success
                      - asset
                  - type: object
                    properties:
                      success:
                        type: boolean
                      assets:
                        type: array
                        items:
                          $ref: '#/components/schemas/CdnAsset'
                      pagination:
                        type: object
                        properties:
                          page:
                            type: integer
                          limit:
                            type: integer
                          total:
                            type: integer
                          totalPages:
                            type: integer
                      stats:
                        $ref: '#/components/schemas/CdnStats'
                    required:
                      - success
                      - assets
                      - pagination
                      - stats
              examples:
                emptyList:
                  value:
                    success: true
                    assets: []
                    pagination:
                      page: 1
                      limit: 50
                      total: 0
                      totalPages: 1
                    stats:
                      totalAssets: 0
                      total_assets: 0
                      totalFolders: 0
                      total_folders: 0
                      pinnedAssets: 0
                      pinned_assets: 0
                      localAssets: 0
                      local_assets: 0
                      externalAssets: 0
                      external_assets: 0
                      totalBytes: 0
                      total_bytes: 0
                      totalDownloads: 0
                      total_downloads: 0
        '401':
          description: Unauthorized (401) - the key was not transferred.
          content:
            application/json:
              examples:
                missing_token:
                  summary: Missing token
                  value:
                    code: 5007
                    message: Missing Token
        '403':
          description: Forbidden (403) - there is a key, but not enough rights.
          content:
            application/json:
              examples:
                missing_token:
                  summary: Missing token
                  value:
                    code: 5007
                    message: Missing Token
        '404':
          description: Not Found (404) - resource not found.
          content:
            application/json:
              examples:
                asset_not_found:
                  summary: Asset not found
                  value:
                    code: 5041
                    message: Asset Not Found
        '429':
          description: >-
            Request limit has been reached. Consider Retry-After; Don't run
            unlimited parallel downloads.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
              example:
                code: 5016
                message: Rate Limit Exceeded
      security:
        - ApiKeyHeader: []
components:
  schemas:
    CdnAsset:
      type: object
      description: >-
        Organizational asset; domain/path and fullPath specify the MinIO key.
        folderId specifies the grouping.
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        domain:
          type: string
          description: Namespace, first path segment.
          example: default
        path:
          type: string
          description: A path within a namespace.
          example: branding/logo.png
        fullPath:
          type: string
          description: Full path `{domain}/{path}`.
          example: default/branding/logo.png
        full_path:
          type: string
        folderId:
          type:
            - string
            - 'null'
        folder_id:
          type:
            - string
            - 'null'
        folder:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
            name:
              type: string
            slug:
              type: string
        sourceType:
          type: string
          enum:
            - LOCAL
            - EXTERNAL
        source_type:
          type: string
        sourceUrl:
          type: string
          description: >-
            For LOCAL - the object key in MinIO, for EXTERNAL - the original
            address.
        source_url:
          type: string
        isPinned:
          type: boolean
        is_pinned:
          type: integer
        mimeType:
          type: string
        mime_type:
          type: string
        size:
          type: integer
          description: Size in bytes.
        sha256:
          type:
            - string
            - 'null'
        downloads:
          type: integer
          description: Always 0, files are sent by edge directly from MinIO.
        createdAt:
          type: string
        created_at:
          type: string
        updatedAt:
          type: string
        updated_at:
          type: string
        teamId:
          type: string
    CdnStats:
      type: object
      description: Storage summary, separate statistics endpoint is not used.
      properties:
        totalAssets:
          type: integer
        total_assets:
          type: integer
        totalFolders:
          type: integer
        total_folders:
          type: integer
        pinnedAssets:
          type: integer
        pinned_assets:
          type: integer
        localAssets:
          type: integer
        local_assets:
          type: integer
        externalAssets:
          type: integer
        external_assets:
          type: integer
        totalBytes:
          type: integer
          format: int64
        total_bytes:
          type: integer
          format: int64
        totalDownloads:
          type: integer
          format: int64
        total_downloads:
          type: integer
          format: int64
    APIError:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        error:
          type: string
        details:
          type: object
          additionalProperties: true
      required:
        - code
        - message
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: erlcrussia-api-key
      description: >-
        Custom API key. Store on the server; do not include client-side
        JavaScript.

````

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