Files

Returns 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 URL
    https://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 level to the response with the status

    • info

      added the optional property level to the response with the status

    • info

      added the optional property level to the response with the status