Skip to main content
Version: 202201

Get File List

GET 

/openapi/2022-01/file

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.

Request

Query Parameters

    page int32

    Page number; Defaults to 1 if not specified. Must be a positive integer.

    Default value: 1
    limit int32

    The 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.

    Default value: 20
    folder string

    The folder name to fetch files from. Defaults to "folder". Allowed values: -product - all_upload

    Default value: product

Responses

200

Schema
    files object[]
  • Array [
  • upload_linkstring
    Example: https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png
    file_uristring
    Example: 7ebb4faa8d92e1d627edf9ca61a98993.png
    folderstring
    Example: upload
    sizeinteger
    Default value: 0
    Example: 6842
    typestring
    Example: image/png
    origin_linkstring
    Example:
    descstring
    Example:
    aspect_ratiostring
    Example: 1.2500000
    widthinteger
    Default value: 0
    Example: 250
    heightinteger
    Default value: 0
    Example: 200
    created_atstring
    Example: 2024-04-23T09:32:57+08:00
    updated_atstring
    Example: 2024-04-23T09:32:57+08:00
  • ]