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

# ファイルコンテンツを取得

> 完了したファイルのコンテンツをダウンロードします。JSONファイルのコンテンツを返します。



## OpenAPI

````yaml ja/openapi/files.json GET /v1/files/{file_id}/content
openapi: 3.0.3
info:
  title: ファイル API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/files/{file_id}/content:
    get:
      summary: IDでファイルオブジェクトを取得
      description: >-
        完了したファイルの内容をダウンロードするための事前署名付きURLを取得します。ダウンロードURLの有効期限を`expires_in`クエリパラメータで指定することもできます（デフォルトは600秒/10分）。
      parameters:
        - name: file_id
          in: path
          required: true
          description: ダウンロードするファイルの一意の識別子。
          schema:
            type: string
        - name: expires_in
          in: query
          required: false
          description: ダウンロードURLが期限切れになるまでの秒数。デフォルトは600秒（10分）。
          schema:
            type: integer
            default: 600
      responses:
        '200':
          description: ダウンロードURLを含む成功したレスポンス。
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: ファイルID
                  object:
                    type: string
                    description: オブジェクトの種類。このエンドポイントでは "file"。
                  created:
                    type: integer
                    description: 作成されたエポックタイムスタンプ
                  filename:
                    type: string
                    description: アップロードされたファイルのファイル名
                  bytes:
                    type: integer
                    description: ファイルサイズ（バイト単位）
                  download_url:
                    type: string
                    format: uri
                    description: ファイルをダウンロードするための事前署名付きURL。指定された`expires_in`時間後に期限切れになります。
                  expires_in:
                    type: integer
                    description: ダウンロードURLが期限切れになるまでの秒数
        '400':
          description: 不正なリクエスト。ファイルが完了していません。
        '401':
          description: 無効なAPIキー
        '404':
          description: ファイルが見つからない
        '500':
          description: 内部サーバーエラー
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Bearer <token>形式のBearer認証ヘッダー。<token>はあなたの認証トークンです。

````