Get and search files
Get and search files in your IM Cloud Storage
POST
https://api.imagemash.io/v1/storage/getFiles
Headers
Name
Type
Description
apikey*
Your API Key
Request Body
Name
Type
Description
searchQuery
A case insensitive search string. If not present or value is *
, then it will get all files.
Default: *
limit
Integer
Maximum number of entities to return in response.
Min: 1
Max: 1000
Default: 1000
skip
Integer
Number of entities to skip from the beginning of the query.
Min: 0
Default: 0
sort
String
Order of the entities. It can be asc
(A-Z) or desc
(Z-A)
Default: asc
sortBy
String
Field name to be sorted by. Possible fields are: name
, width
, height
, format
, size
, updatedAt
, createdAt
Default: createdAt
folder
String
Specific folder to look for files. Eg. /brand_1/logos
or for searching in home directory just /
Default: *
[
{
"name": "jeep.png",
"type": "image",
"filePath": "/cars/jeep.png",
"folderPath": "/cars",
"width": 1248,
"height": 832,
"tags": [
"car",
"gray",
"forest",
"wheel",
"nature"
],
"format": "png",
"mime": "image/png",
"size": 2498863,
"sizeHuman": "2,38 MB",
"thumbnail": "http://demo.imagemash.io/cars/jeep.png?tr=imagemash,w_250,q_80,f_webp",
"url": "http://demo.imagemash.io/cars/jeep.png",
"createdAt": "2023-01-13T11:00:36.215Z",
"updatedAt": "2023-01-13T11:00:36.215Z"
}
]
Example Codes
curl --location --request POST 'https://api.imagemash.io/v1/storage/getFiles' \
--header 'apikey: your_api_key' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'searchQuery=jeep.png'
Last updated