Short Links

Serves the publication behind the link: page, site, file, JSON or KV. 410 for a deleted public publication; otherwise 404.

get/{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

raw, boolean

Bypass SPA: stream raw bytes directly (used by <video src>, <iframe src> for PDF, embed cases)

inline, boolean

Legacy site wrapper bypass; NEW publications retain stored hosting and protection policies

Headers

X-Password, string

Access password for protected resources

Range, string
X-Resolve, string
User-Agent, string
Accept, string
X-Owner-Token, string

Owner token; when supplied, response carries X-Is-Owner: true on match

Response

OK

object required

Changes

    • 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 new optional header request parameter Accept

    6 more changes in this revision