v1
latestOpenAPI 3.0.02026-07-14198572488.4 KBFiles
[Deprecated] List files in a site installation.
[Deprecated] - Use 'List Site Files' (/v1/sites/:id/file_manager/files) instead
get/v1/sites/{id}/files
Path parameters
idinteger required
ID of the Site you are interacting with
Example:8880000888
Query parameters
pathstring
Response
OK
Example response
{
"success": true,
"errors": [],
"messages": [],
"result": {
"files": [
{
"humansize": "4 KB",
"file": "file1.css",
"fullpath": "/home/user2/public_html/file1.css",
"ctime": 1713495598,
"absdir": "/home/user2/public_html",
"size": 4096,
"nicemode": "0600",
"type": "file",
"path": "/home/user2/public_html",
"mtime": 1714411276
}
],
"totals": {
"files": 10,
"folders": 5
}
}
}