メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt

Use this file to discover all available pages before exploring further.

GET /v1/files/{file_id} ファイル ID を指定して単一ファイルの詳細メタデータ情報を取得します。

ヘッダー

ヘッダー必須説明
AuthorizationはいBearer $QODER_PAT

パスパラメータ

パラメータ必須説明
file_idstringはいファイル一意識別子、file_ プレフィックス文字列

リクエスト例

curl -X GET "https://openapi.qoder.sh/api/v1/cloud/files/file_019e3bb8c1387743bf4ef115aae5acb1" \
  -H "Authorization: Bearer $QODER_PAT"

レスポンス例

HTTP 200 OK
{
  "created_at": "2026-05-18T15:33:44Z",
  "file_id": "file_019e3bb8c1387743bf4ef115aae5acb1",
  "filename": "qoder-test-upload.txt",
  "metadata": {},
  "mime_type": "text/plain",
  "purpose": "session_resource",
  "size_bytes": 110,
  "status": "ready",
  "updated_at": "2026-05-18T15:33:44Z"
}

レスポンスフィールド

フィールド説明
file_idstringファイル一意識別子
filenamestring元のファイル名
size_bytesintegerファイルサイズ(バイト)
mime_typestringMIME タイプ
purposestringファイル用途
statusstringファイル状態(ready は利用可能を表す)
metadataobjectカスタムメタデータ
created_atstring作成時刻(ISO 8601)
updated_atstring更新時刻(ISO 8601)

エラーレスポンス

HTTPtype説明
401認証トークンが欠落または無効
404not_found_error指定 ID のファイルが存在しない

エラー例

{
  "error": {
    "message": "File 'file_nonexistent123' was not found.",
    "type": "not_found_error"
  },
  "type": "error"
}