GET/v1/files/{file_id}

ファイルを取得

ファイルのメタデータ。バッチの結果はpurpose: batch_outputのファイルです。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • file_idstring必須

    ファイルID。

レスポンス

  • 200

    ファイル。

    レスポンス
    • idstring
    • objectstring
    • bytesinteger
    • created_atinteger
    • filenamestring
    • purposeenum
      "batch""batch_output"
  • 401

    キーがないか、形式が不正か、期限切れか、取り消されています。

    レスポンス
    • errorobject
      error
      • messagestring

        問題の内容と解決方法。

      • typestring

        例:invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。

      • codestring

        安定したエラーコード。

      • paramstring | null

        該当する場合、問題のあるリクエストフィールド。

      • refusal_reasonenum

        code: refusalの場合にのみ含まれます。

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 404

    このキーではリソースが見つかりません。

    レスポンス
    • errorobject
      error
      • messagestring

        問題の内容と解決方法。

      • typestring

        例:invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。

      • codestring

        安定したエラーコード。

      • paramstring | null

        該当する場合、問題のあるリクエストフィールド。

      • refusal_reasonenum

        code: refusalの場合にのみ含まれます。

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"

リクエスト

curl 'https://api.experientiallabs.ai/v1/files/file_3f9a1c0e7b2d4a6f8e1c2b3d' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "id": "file_7b1d9e3a5c2f4086b4a1e9c7",
  "object": "file",
  "bytes": 1893,
  "created_at": 1795136400,
  "filename": "batch_9c2e4b7a1f0d3e6c5b8a2d4f_output.jsonl",
  "purpose": "batch_output"
}

https://api.experientiallabs.ai/v1/files/file_3f9a1c0e7b2d4a6f8e1c2b3d