Limits

Upload limits per type

Changed on

Returns the size, count, TTL and file-type limits for HTML, JSON, KV, files and sites. Sizes are bytes; maxTotalBytes counts uncompressed files, maxArchiveExpansionBytes every inflated ZIP byte including skipped system files (skippedFileNames, skippedRootFolders), which never count toward the limits. reach is always sent: profile only for an X-Owner-Token active in a profile, else token; ownerMaxTtlDays only for a usable X-Owner-Token; an unusable token gets the anonymous answer.

get/api/limits

Request

  • Base URL
    https://brewpage.app
  • Auth
    • none
    • or API key in header X-Owner-Token

Headers

X-Owner-Token, unknown

Optional owner token

Response

Current upload limits

LimitsResponse required
requestMaxBytes, integer required
sites, SiteLimitsResponse required
html, HtmlLimitsResponse required

HTML, Markdown, code or JSON page (POST /api/html); maxBytes counts UTF-8 bytes

json, JsonLimitsResponse required

JSON document; maxDocs per namespace

kv, KvLimitsResponse required

KV store; maxKeys per store

files, FileLimitsResponse required

File upload; maxFiles per namespace

profileMaxTtlDays, integer required

TTL cap in days for an X-Owner-Token in a profile, every type

reach, 'token' | 'profile' required

profile only for an X-Owner-Token active in a profile; else token, also without a token

ownerMaxTtlDays, integer

Per-owner TTL cap in days for this token; absent = per-type maximum

customDomains, CustomDomainsBlock

Custom domains for this caller; present only when custom domains are available

linkNames, LinkNamesBlock required

Link names: enabled = names can be set now; existing named addresses keep working either way

Changes

    • info

      added the optional property level to the response with the status

    • info

      added the required property linkNames to the response with the status

    • info

      added the optional property challengeUrl to the response with the status

    1 more change in this revision