v1
latestOpenAPI 3.0.02026-07-14198572488.4 KBFiles
View contents of a given file.
For a given file on a site, retrieve contents of file.
get/v1/sites/{id}/files/view
Path parameters
idinteger required
ID of the Site you are interacting with
Example:8880000888
Query parameters
filenamestring required
directorystring
Response
OK
Example response
{
"success": true,
"errors": [],
"messages": [],
"result": {
"content": "<?php echo 'Hello, world!'; ?>",
"content_type": "image/jpeg"
}
}