Skip to main content
Files

File の取得

Forward API リファレンス。

Description

Retrieves metadata for a single File by its ID.

パス

GET /api/v1/forward/files/{file_id}

リクエストヘッダー

ヘッダー必須説明
AuthorizationはいBearer <PAT または SAT>

パス参数

パラメーター型必須説明
file_idstringはいFile ID to retrieve.

Query parameters

ParameterTypeRequiredDescription
identity_idstringNoFor Identity-owned resources only. PATs may supply this query parameter; omitting it uses the administrator scope. SAT ownership is determined by the credential; any SAT (including Admin SAT) explicitly supplying this parameter, even with an empty value, receives HTTP 400. See Identity ownership.

リクエスト例

curl -X GET "https://api.qoder.com/api/v1/forward/files/file_xxx" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

レスポンス例

HTTP 200 OK
{
  "id": "file_xxx",
  "type": "file",
  "filename": "report.pdf",
  "size_bytes": 1024,
  "mime_type": "application/pdf",
  "created_at": "2026-07-23T10:00:00Z",
  "updated_at": "2026-07-23T10:00:00Z",
  "downloadable": true,
  "scope": null,
  "metadata": {"source": "console"},
  "identity_id": null
}

レスポンスフィールド

The response is a File object.

エラー

HTTPType発生条件
400invalid_request_errorリクエストボディ、パスパラメーター、またはクエリパラメーターが不正です。SAT でクエリパラメーター identity_id を明示的に指定した場合(空値を含む)も該当します。
401authentication_error認証トークンがないか、無効です。
403permission_error管理者 Scope で Owner mismatch が発生したか、下流サービスがアクセスを拒否しました。
404not_found_errorFile が存在しないか、現在の Identity Scope から参照できません。PAT で指定した Identity が無効、無効化済み、削除済み、または権限範囲外の場合も該当します。
500/502/503api_errorForward または依存サービスでエラーが発生しました。