Files
Download file
Changed onReturns file inline for previewable types (images, PDF, media) or as attachment. Add ?dl=1 to force download.
get/api/files/{ns}/{id}
Request
- Base URL: https://brewpage.app
- URL: https://brewpage.app/api/files/{ns}/{id}
- Auth: one of:
- none
- API key in header X-Owner-Token
- API key in header X-Password
Path parameters
nsstring required
idstring required
Query parameters
pstring
Legacy-only query password; ignored for NEW publications. Programmatic access uses X-Password or the owner token.
dlboolean
Force download as attachment
Headers
X-Passwordstring
Access password via header
Rangestring
User-Agentstring
X-Owner-Tokenstring
Owner token to bypass password protection when no password supplied
Response
File content
Changes
- breaking
removed the media type
*/*for the response with the status - breaking
removed the media type
*/*for the response with the status - info
the endpoint scheme security
OwnerTokenwas added to the API - info
the endpoint scheme security
Passwordwas added to the API - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- breaking