> ## 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.

# URL ファイルアップロード

> - リモートファイルURLを提供してアップロード
- システムが自動的にリモートファイルをダウンロードして保存
- 他のサーバーからのファイル移行に適しています
- ファイルは72時間後に期限切れになります
- 現在のユーザークォータには制限があります。クォータを使い切るとアップロードに失敗します。永続的な保存が必要な場合はローカルに保存してください

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



## OpenAPI

````yaml ja/api-manual/file-series/upload-url.json POST /api/v1/files/upload/url
openapi: 3.1.0
info:
  title: URL ファイルアップロード API
  description: リモートURLを介してファイルをダウンロードしてファイルサーバーにアップロード
  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/upload/url:
    post:
      tags:
        - ファイルアップロード
      summary: URL ファイルアップロード
      description: |-
        - リモートファイルURLを提供してアップロード
        - システムが自動的にリモートファイルをダウンロードして保存
        - 他のサーバーからのファイル移行に適しています
        - ファイルは72時間後に期限切れになります
        - 現在のユーザークォータには制限があります。クォータを使い切るとアップロードに失敗します。永続的な保存が必要な場合はローカルに保存してください

        **注意：**
        ファイルアップロードAPIのベースURLは`https://files-api.evolink.ai`です
      operationId: uploadFileUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UrlUploadRequest'
            examples:
              url_upload:
                summary: URL ファイルアップロード
                value:
                  file_url: https://example.com/image.jpg
      responses:
        '200':
          description: ファイルのアップロードに成功しました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileUploadResponse'
components:
  schemas:
    UrlUploadRequest:
      type: object
      required:
        - file_url
      properties:
        file_url:
          type: string
          format: uri
          description: >-
            リモートファイルURL


            **要件：**

            - 公開アクセス可能なURLである必要があります

            - HTTPおよびHTTPSプロトコルをサポート

            - システムがこのURLからファイルコンテンツを自動的にダウンロードします

            - 1リクエストにつき最大`1`画像

            -
            現在、`image/jpeg`、`image/png`、`image/gif`、`image/webp`形式のファイルのみアップロード可能
          example: https://example.com/image.jpg
        upload_path:
          type: string
          description: |-
            カスタムアップロードパス

            **注意：**
            - 指定しない場合、システムがファイルタイプに基づいて自動的に分類します
          example: downloads
        file_name:
          type: string
          description: |-
            カスタムファイル名

            **注意：**
            - 指定しない場合、システムが自動的に一意のファイル名を生成します
          example: downloaded.jpg
    FileUploadResponse:
      type: object
      properties:
        success:
          type: boolean
          description: リクエストが成功したかどうか
          example: true
        code:
          type: integer
          description: レスポンスステータスコード
          example: 200
        msg:
          type: string
          description: レスポンスメッセージ
          example: ファイルのアップロードに成功しました
        data:
          $ref: '#/components/schemas/FileData'
    FileData:
      type: object
      properties:
        file_id:
          type: string
          description: 一意のファイル識別子
          example: file_abc123
        file_name:
          type: string
          description: 保存されたファイル名
          example: downloaded.jpg
        original_name:
          type: string
          description: 元のファイル名
          example: downloaded.jpg
        file_size:
          type: integer
          description: ファイルサイズ（バイト）
          example: 2048
        mime_type:
          type: string
          description: ファイルMIMEタイプ
          example: image/jpeg
        upload_path:
          type: string
          description: ファイル保存パス
          example: downloads
        file_url:
          type: string
          format: uri
          description: ファイルアクセスURL
          example: https://files.evolink.ai/downloads/downloaded.jpg
        download_url:
          type: string
          format: uri
          description: ファイルダウンロードURL
          example: https://files.evolink.ai/api/v1/files/download/file_abc123
        upload_time:
          type: string
          format: date-time
          description: アップロード時間（ISO 8601 フォーマット）
          example: '2025-10-09T00:00:00+08:00'
        expires_at:
          type: string
          format: date-time
          description: ファイル有効期限（ISO 8601形式）
          example: '2025-10-12T00:00:00+08:00'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##すべてのAPIにBearer Token認証が必要です##

        **APIキーの取得：**

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

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

````