Read the content of a specific file (limited to text files below a certain size).
accountId integer · min: 1 required Example Unique account identifier
Accept Example Content-Type Example dir string required file string required success boolean timestamp string requestId string data object https://cloud.hostup.se/api/hosting/{accountId}/files/read curl -X POST "https://cloud.hostup.se/api/hosting/17374/files/read" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dir": "string",
"file": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"accountId": "string",
"cpanelUsername": "string",
"dir": "string",
"file": "string",
"content": "string"
}
} {
"dir": "string",
"file": "string"
}