API Reference

Explore the full BrewPage REST API — 8 tags, 15+ endpoints, all publicly accessible.

Interactive Explorer

Loading API Reference...

Alternative API Viewers

ViewerURL
Swagger UI (live on server)brewpage.app/swagger-ui/index.html
Scalar (this page)Embedded above
OpenAPI JSONbrewpage.app/v3/api-docs

OpenAPI Specification

Download the full OpenAPI 3.1 spec:

FormatSource
YAMLopenapi.yaml
JSONopenapi.json
Live endpointbrewpage.app/v3/api-docs

API Endpoints Overview

Base URL: https://brewpage.app (alias: https://brewdata.app)

TagDescriptionKey Endpoints
HTMLHTML/Markdown page hostingPOST /api/html, GET /api/html/{ns}/{id}
KVKey-value store (1000 keys/ns)PUT /api/kv/{ns}/{id}/{key}, GET /api/kv/{ns}/{id}/{key}
JSONJSON document store (10K docs)POST /api/json/{ns}/{collection}, GET /api/json/{ns}/{collection}/{id}
FilesFile hosting (5 MB/file)POST /api/files, GET /api/files/{ns}/{id}, DELETE /api/files/{ns}/{id}
SitesMulti-file HTML site hostingPOST /api/sites, GET /api/sites/{ns}/{id}, GET /api/sites/{ns}/{id}/files/{filePath}, DELETE /api/sites/{ns}/{id}
GalleryPublic content browserGET /api/gallery/pages, GET /api/gallery/files
StatsPlatform statisticsGET /api/stats
Short LinksURL shortenerGET /s/{code}
SEOSearch engine supportGET /sitemap.xml, GET /robots.txt

Authentication

Most read endpoints are public — no auth required.

Write operations use owner tokens returned in create responses:

MethodExample
HeaderX-Owner-Token: tok_xxx
Query param?token=tok_xxx

Password-protected content:

MethodExample
HeaderX-Password: secret
Query param?p=secret

Rate Limits

OperationLimit
Uploads (POST)60/hour/IP
Reads (GET)300/min/IP

Size Limits

ResourceMax SizeMax Count
HTML page5 MB
KV value1 MB1,000 keys/store
JSON doc1 MB10,000 docs/collection
File5 MB1,000 files/ns
TTL30–365 days

Try It Now

curl https://brewpage.app/api/stats
curl -X POST https://brewpage.app/api/html \
  -H "Content-Type: application/json" \
  -d '{"content":"<h1>Hello!</h1>","format":"HTML"}'