GET/v1/files/{file_id}

Retrieve a file

The file's metadata. Batch results are files with purpose: batch_output.

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

パスパラメータ

  • file_idstring必須

    The file id.

レスポンス

  • 200

    The file.

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

    The key is missing, malformed, expired or revoked.

    レスポンス
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

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

    No such resource for this key.

    レスポンス
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on 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