Get File List

The Get File List API allows developers to retrieve a list of files stored on the server. This endpoint supports pagination and filtering based on the folder name.

The Get File List API retrieves a paginated list of files from the specified folder. You can filter files by type and control pagination using the query parameters.

This API is especially useful for:

  1. Fetching stored files in a specific folder.
  2. Managing and reviewing uploaded files.
  3. Accessing detailed file metadata such as dimensions, file size, and type.

Request Parameters

Public Request Parameters

📘

Query Parameters

FieldTypeRequiredDescriptionExample
cursorstringNocursor for pagination1
page_sizeint32NoThe number of files to retrieve per page. Defaults to 20 if not specified. Must be greater than 0 and less than or equal to 300.20
folderstringNoThe folder name to fetch files from. Defaults to "all_upload". Allowed values: -product - all_uploadproduct

Response Explanation

Public Response Parameters

📘

Success Response

FieldTypeDescriptionExample
codestring"success"Response status code
messagestringDescriptive message of the response
data.filesarrayList of files.See below for structure.
data.upload_linkstringDirect link to access the uploaded file.https://cdn.shoplazza.com/ 7ebb4faa8d92e1d627edf9ca61a98993.png
data.file_uristringUnique identifier of the file.7ebb4faa8d92e1d627edf9ca61a98993.png
data.folderstringThe folder where the file is stored.upload
data.sizeintFile size in bytes.6842
data.typestringMIME type of the file.image/png
data.origin_linkstringThe original link of the file if uploaded via URL.""
data.descstringFile description.""
data.aspect_ratiostringAspect ratio of the file."1.2500000"
data.widthintWidth of the file in pixels.250
data.heightintHeight of the file in pixels.200
data.created_atstringTimestamp when the file was created."2024-04-23T09:32:57+08:00"
data.updated_atstringTimestamp when the file was last updated."2024-04-23T09:32:57+08:00"
data.cursorstringPagination token"next123"
data.has_morebooleanMore items availabletrue

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!