Get File Details

The Get File Details API allows developers to retrieve detailed information about a specific file stored on the server. This endpoint requires the unique identifier of the file.

The Get File Details API retrieves 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.

This API is especially useful for:

  1. Fetching specific file metadata for management purposes.
  2. Verifying file upload details and properties.
  3. Accessing the upload link for downloaded or shared files.

Request Parameters

Public Request Parameters

📘

Path Parameters

Field Type Required Description Example
file_uri string Yes The unique identifier of the file. This must be a valid alphanumeric string representing the file's URL. 7ebb4faa8d92e1d627edf9ca61a98993.png

Response Explanation

Public Response Parameters

📘

Success Response

Field Type Description Example
codestring`Success`Response status
dataarrayResponse message
upload_link string Direct link to access the uploaded file. https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png
file_uri string Unique identifier of the file. 7ebb4faa8d92e1d627edf9ca61a98993.png
folder string The folder where the file is stored. upload
size int File size in bytes. 6842
type string MIME type of the file. image/png
origin_link string The original link of the file if uploaded via URL. ""
desc string File description. ""
aspect_ratio string Aspect ratio of the file. "1.2500000"
width int Width of the file in pixels. 250
height int Height of the file in pixels. 200
created_at string Timestamp when the file was created. "2024-04-23T09:32:57.090041356+08:00"
updated_at string Timestamp when the file was last updated. "2024-04-23T09:32:57.090041356+08:00"

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!