Version: 202201
Get File Details
GET/openapi/2022-01/file/:file_uri
Retrieve detailed metadata and access information about a specific file using its unique file_uri. This endpoint is commonly used to fetch file properties, such as the name, size, type, and access URL.
Request
Path Parameters
file_uri stringrequired
The unique identifier of the file. This must be a valid alphanumeric string representing the file’s URI.
Responses
- 200
- 400
- 404
200
- application/json
- Schema
- Example
- Result
Schema
upload_linkstring
Example:
https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.pngfile_uristring
Example:
7ebb4faa8d92e1d627edf9ca61a98993.pngfolderstring
Example:
uploadsizeinteger
Default value:
0Example:
6842typestring
Example:
image/pngorigin_linkstring
Example:
descstring
Example:
aspect_ratiostring
Example:
1.2500000widthinteger
Default value:
0Example:
250heightinteger
Default value:
0Example:
200created_atstring
Example:
2024-04-23T09:32:57.090041356+08:00updated_atstring
Example:
2024-04-23T09:32:57.090041356+08:00{
"upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
"file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
"folder": "upload",
"size": 6842,
"type": "image/png",
"origin_link": "",
"desc": "",
"aspect_ratio": "1.2500000",
"width": 250,
"height": 200,
"created_at": "2024-04-23T09:32:57.090041356+08:00",
"updated_at": "2024-04-23T09:32:57.090041356+08:00"
}
{
"upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
"file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
"folder": "upload",
"size": 6842,
"type": "image/png",
"origin_link": "",
"desc": "",
"aspect_ratio": "1.2500000",
"width": 250,
"height": 200,
"created_at": "2024-04-23T09:32:57.090041356+08:00",
"updated_at": "2024-04-23T09:32:57.090041356+08:00"
}
400
- application/json
- Schema
- Example
- Result
Schema
errorsstring
Example:
request status not ok{
"errors": "request status not ok"
}
{ "errors": "request status not ok" }
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"data is null"
]
}
{
"errors": [
"data is null"
]
}