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

# ファイルクォータを照会

> - 現在のユーザーのファイル使用量と残りクォータを照会する
- デフォルトユーザーグループは最大 `2000` ファイルを許可

**注意：**
ファイルAPIのベースURLは `https://files-api.evolink.ai` です



## OpenAPI

````yaml ja/api-manual/file-series/quota.json GET /api/v1/files/quota
openapi: 3.1.0
info:
  title: ファイルクォータAPI
  description: 現在のユーザーのファイル使用量と残りクォータを照会する
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://files-api.evolink.ai
    description: ファイルサービス環境
security:
  - bearerAuth: []
tags:
  - name: ファイル管理
    description: ファイル管理関連API
paths:
  /api/v1/files/quota:
    get:
      tags:
        - ファイル管理
      summary: ファイルクォータを照会
      description: |-
        - 現在のユーザーのファイル使用量と残りクォータを照会する
        - デフォルトユーザーグループは最大 `2000` ファイルを許可

        **注意：**
        ファイルAPIのベースURLは `https://files-api.evolink.ai` です
      operationId: getFilesQuota
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuotaResponse'
              example:
                success: true
                code: 200
                data:
                  user_group: default
                  used_files: 35
                  max_files: 2000
                  remain_files: 65
                  is_custom: false
                  quota_reason: ''
components:
  schemas:
    QuotaResponse:
      type: object
      properties:
        success:
          type: boolean
          description: 請求是否成功
          example: true
        code:
          type: integer
          description: 響應状態碼
          example: 200
        data:
          $ref: '#/components/schemas/QuotaData'
    QuotaData:
      type: object
      properties:
        user_group:
          type: string
          description: ユーザーグループ：`default`（デフォルトクォータ 2000 ファイル）
          example: default
        used_files:
          type: integer
          description: 現在保存されているファイル数
          example: 35
        max_files:
          type: integer
          description: 許可される最大ファイル数
          example: 2000
        remain_files:
          type: integer
          description: 残りアップロード可能数
          example: 65
        is_custom:
          type: boolean
          description: 管理者が手動で設定したカスタムクォータかどうか
          example: false
        quota_reason:
          type: string
          description: カスタムクォータの理由（`is_custom` が `true` の場合のみ設定）
          example: ''
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##すべてのAPIにBearer Token認証が必要です##

        **APIキーの取得：**

        [APIキー管理ページ](https://evolink.ai/dashboard/keys)にアクセスしてAPIキーを取得してください

        **リクエストヘッダーに追加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````