curl --request GET \
--url https://services.leadconnectorhq.com/medias/files \
--header 'Authorization: Bearer <token>'{
"files": {
"altId": "locationId",
"altType": "location",
"name": "file name",
"parentId": "parent folder id",
"url": "file url",
"path": "file path"
}
}Fetches list of files and folders from the media storage
curl --request GET \
--url https://services.leadconnectorhq.com/medias/files \
--header 'Authorization: Bearer <token>'{
"files": {
"altId": "locationId",
"altType": "location",
"name": "file name",
"parentId": "parent folder id",
"url": "file url",
"path": "file path"
}
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account
Access Token
"Bearer 9c48df2694a849b6089f9d0d3513efe"
Number of files to skip in listing
Number of files to show in the listing
Field to sorting the file listing by
Direction in which file needs to be sorted
Type
Query text
AltType
Fetch all files or folders
Successful response
Array of File Objects
{
"altId": "locationId",
"altType": "location",
"name": "file name",
"parentId": "parent folder id",
"url": "file url",
"path": "file path"
}Was this page helpful?