List files in a directory

Display files and folders in a specified directory on your hosting account. Use the 'dir' query parameter to specify the path (e.g., ?dir=public_html). Returns filename, size, type, and modification date.

Path Parameters

accountId integer · min: 1 required Example

Unique account identifier

Query Parameters

dir string · enum required
host.example27.com
public_html
public_html/example28.com

Headers

Accept Example
Content-Type Example

Responses

200 Successful response
files string
dir string
count string
cpanelUsername string
GET https://cloud.hostup.se/api/hosting/{accountId}/files
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/hosting/1436/files?dir=host.example27.com" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "files": "string",
  "dir": "string",
  "count": "string",
  "cpanelUsername": "string"
}