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
  • URL: https://brewpage.app/api/html/{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.

Headers

X-Passwordstring

Access password via header

User-Agentstring
X-Owner-Tokenstring

Owner token to bypass password protection when no password supplied

Response

HTML content

string required

Changes

    • breaking

      removed the media type */* for the response with the status

    • 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 OwnerToken was added to the API

    • info

      the endpoint scheme security Password was added to the API

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type text/csv for the response with the status

    • info

      added the media type text/html for the response with the status

    • info

      added the media type text/plain for the response with the status

    • info

      added the media type text/tab-separated-values for the response with the status

    • info

      added the media type text/xml for the response with the status