HTML

Returns rendered HTML content. Protected OLD pages accept X-Password or ?p=; NEW pages use X-Password or a reader access cookie. The owner token bypasses password protection when no password is supplied.

get/api/html/{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, '1' | 'true'

Download instead of view: an HTML or Markdown page's source, or a code page's content, as an attachment named after its stored format

Headers

X-Password, string

Access password via header

User-Agent, string
X-Owner-Token, string

Owner token to bypass password protection when no password supplied

Response

HTML content

string 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