Get File
GET
/web/v1/files/query/{fileBizId} JWT + TurnstileRetrieves the metadata of a single file by its business ID. This does not return the file content; use the download endpoints for that.
Required Headers
| Header | Example Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
| Accept | application/json | Expected response type |
| X-Client-Hash | Client device fingerprint | |
| Accept-Language | en, zh, zh-Hant, ja, vi | Response language (default: en) |
| Authorization | Bearer | JWT access token |
| X-Workspace-Id | Target workspace ID |
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
fileBizId | string | Required | path | File business ID |
Success Response
Success 200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"bizId": "file_abc123",
"bucket": "default",
"objectKey": "uploads/2026/03/21/file_abc123.pdf",
"originalFilename": "invoice.pdf",
"fileSize": 102400,
"contentType": "application/pdf",
"fileCategory": "DOCUMENT",
"fileStatus": "ACTIVE",
"etag": "d41d8cd98f00b204e9800998ecf8427e",
"remark": "Monthly invoice",
"createdAt": "2026-03-21T00:00:00Z",
"createdBy": "acc_user123"
}
}Error Responses
Unauthorized 401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Not Found 404
{
"success": false,
"code": "4040",
"message": "File not found"
}Notes
- Returns metadata only. Use Get Download URL or Download File for file content.