v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Files

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

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "content": "<?php echo 'Hello, world!'; ?>",
    "content_type": "image/jpeg"
  }
}