Sites
Serve site file
Changed onServes an individual file from the site with correct content type
get/api/sites/{ns}/{id}/files/{filePath}
Request
- Base URL: https://brewpage.app
- URL: https://brewpage.app/api/sites/{ns}/{id}/files/{filePath}
- Auth: one of:
- none
- API key in header X-Owner-Token
- API key in header X-Password
Path parameters
nsstring required
idstring required
filePathstring required
Relative file path, including nested directories; encode each segment and retain slash separators.
Query parameters
pstring
Legacy-only query password; ignored for NEW publications. Programmatic access uses X-Password or the owner token.
Headers
X-Passwordstring
Access password via header
User-Agentstring
X-Owner-Tokenstring
Owner token to bypass password protection when no password supplied
Rangestring
Response
File content
Changes
- info
endpoint added
- info