The content of one file, at most 1 MB (413 when it is larger). Text that is valid UTF-8 comes back as it is, with encodingutf-8; anything else, such as an image, comes back base64-encoded with encodingbase64.Files hold passwords and keys (wp-config.php, .env): treat the answer as a secret. File contents are not stored in the API request log.Scope: hosting-files:read.
Request
Authorization
API Key
Add parameter in header
API-key
Example:
API-key: ********************
or
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.