BrewPage · Schema

BrewPage JSON Document

A stored JSON document. Up to 10,000 docs per collection (namespace). Created via POST /api/json.

HostingMarkdownHTMLAI ArtifactsFile HostingDeveloper Tools

Properties

Name Type Description
id string
namespace string
link string
ownerLink string
ownerToken string
content object Arbitrary JSON document payload.
ttlDays integer
passwordProtected boolean
createdAt string
expiresAt string
View JSON Schema on GitHub

JSON Schema

brewpage-json-document-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brewpage/main/json-schema/brewpage-json-document-schema.json",
  "title": "BrewPage JSON Document",
  "description": "A stored JSON document. Up to 10,000 docs per collection (namespace). Created via POST /api/json.",
  "type": "object",
  "required": ["id", "namespace", "link", "ownerToken"],
  "properties": {
    "id": {"type": "string", "minLength": 10, "maxLength": 10},
    "namespace": {"type": "string", "pattern": "^[a-z0-9-]{1,32}$"},
    "link": {"type": "string", "format": "uri"},
    "ownerLink": {"type": "string", "format": "uri"},
    "ownerToken": {"type": "string"},
    "content": {
      "description": "Arbitrary JSON document payload."
    },
    "ttlDays": {"type": "integer", "minimum": 1, "maximum": 30},
    "passwordProtected": {"type": "boolean"},
    "createdAt": {"type": "string", "format": "date-time"},
    "expiresAt": {"type": "string", "format": "date-time"}
  },
  "additionalProperties": false
}