BrewPage Hosting Management API
Owner-only publication delivery settings
Owner-only publication delivery settings
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/brewpage:brewpage-hosting-management-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: BrewPage Hosting Management API
description: Free instant hosting for HTML, Markdown, JSON, key-value stores, files and sites. REST omission defaults to the public namespace; MCP omission creates an unlisted namespace. Unlisted URLs are accessible to anyone with the link; use a password for access restrictions. Retain returned links and ownership tokens. Public discovery requires eligibility; protected and non-public publications are excluded.
termsOfService: https://brewpage.app/terms
contact:
name: BrewPage
url: https://brewpage.app
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0
version: 1.112.0
servers:
- url: https://brewpage.app
description: Generated server url
tags:
- name: Hosting Management
description: Owner-only publication delivery settings
paths:
/api/{type}/{ns}/{id}/access/revoke:
post:
tags:
- Hosting Management
summary: Revoke reader access to a new protected publication
operationId: revokeReaderAccess
parameters:
- name: type
in: path
required: true
schema:
type: string
enum:
- html
- files
- json
- kv
- sites
- name: ns
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
- name: X-Owner-Token
in: header
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AccessRevokeResponse'
'400':
description: Reader access revocation requires a NEW protected publication
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Missing or wrong owner token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Publication unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- OwnerToken: []
/api/{type}/{ns}/{id}/hosting:
get:
tags:
- Hosting Management
summary: Read owner-only publication delivery settings
operationId: getHosting
parameters:
- name: type
in: path
required: true
schema:
type: string
enum:
- html
- files
- json
- kv
- sites
- name: ns
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
- name: X-Owner-Token
in: header
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/HostingProjection'
'403':
description: Missing or wrong owner token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Publication unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- OwnerToken: []
patch:
tags:
- Hosting Management
summary: Change delivery mode for a new public publication
operationId: updateHosting
parameters:
- name: type
in: path
required: true
schema:
type: string
enum:
- html
- files
- json
- kv
- name: ns
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
- name: X-Owner-Token
in: header
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/HostingUpdateRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/HostingProjection'
'400':
description: Invalid mode/version or locked delivery mode
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Missing or wrong owner token
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Publication unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Hosting version conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Hosting changes temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- OwnerToken: []
components:
schemas:
HostingUpdateRequest:
type: object
properties:
deliveryMode:
type: string
enum:
- path
- subdomain
expectedVersion:
type: integer
format: int64
maximum: 9223372036854775807
minimum: 1
required:
- deliveryMode
- expectedVersion
ErrorResponse:
type: object
properties:
status:
type: integer
format: int32
error:
type: string
message:
type: string
timestamp:
type: string
format: date-time
supportedTypes:
type: array
items:
type: string
retryAfterSeconds:
type: integer
format: int64
limit:
type: integer
format: int32
result:
oneOf:
- $ref: '#/components/schemas/AbuseResult'
code:
type: string
required:
- error
- message
- status
- timestamp
AbuseResult:
type: object
properties:
code:
type: string
enum:
- success
- duplicate
- warned
- failed
action:
type: string
enum:
- created
- created_missing_assets
- updated
- merged
- created_warned
- unavailable
- rate_limited
- rejected
reason:
type: string
extras:
type: object
additionalProperties: {}
required:
- action
- code
AccessRevokeResponse:
type: object
properties:
revoked:
type: boolean
HostingProjection:
type: object
properties:
link:
type: string
ownerLink:
type: string
managementLink:
type:
- string
- 'null'
routingCohort:
type: string
deliveryMode:
type:
- string
- 'null'
requestedDeliveryMode:
type:
- string
- 'null'
effectiveDeliveryMode:
type:
- string
- 'null'
deliveryModeMatched:
type:
- boolean
- 'null'
namespace:
type: string
access:
type: string
modeLocked:
type: boolean
hostingVersion:
type:
- integer
- 'null'
format: int64
required:
- access
- deliveryMode
- deliveryModeMatched
- effectiveDeliveryMode
- hostingVersion
- link
- managementLink
- modeLocked
- namespace
- ownerLink
- requestedDeliveryMode
- routingCohort
securitySchemes:
OwnerToken:
type: apiKey
name: X-Owner-Token
in: header
Password:
type: apiKey
name: X-Password
in: header
externalDocs:
description: BrewPage API documentation (Scalar)
url: https://kochetkov-ma.github.io/brewpage-openapi/
x-provenance:
method: harvested
publisher: BrewPage
source: https://brewpage.app/v3/api-docs
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)