Files
Download file
Changed onReturns file inline for previewable types (images, PDF, media) or as attachment. Add ?dl=1 to force download. An HTML or Markdown file published as a page redirects to GET /api/html/{ns}/{id}.
get/api/files/{ns}/{id}
Request
- Base URLhttps://brewpage.app
- Auth
- none
- or API key in header X-Owner-Token
- or API key in header X-Password
Path parameters
ns, string required
id, string required
Query parameters
p, string
Legacy-only query password; ignored for NEW publications. Programmatic access uses X-Password or the owner token.
dl, boolean
Force download as attachment
Headers
X-Password, string
Access password via header
Range, string
User-Agent, string
X-Owner-Token, string
Owner token to bypass password protection when no password supplied
Response
File content
object required
Changes
- info
added the optional property
levelto the response with the status - info
added the optional property
levelto the response with the status - info
added the optional property
levelto the response with the status
- info