---
title: "Upload limits per type"
method: GET
path: "/api/limits"
tags: ["Limits"]
---

# Upload limits per type

`GET /api/limits`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/api/limits`
- Auth: one of:
  - none
  - API key in header `X-Owner-Token`

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.

## Headers

- `X-Owner-Token` unknown

## Response `200`

Current upload limits

- LimitsResponse
  - `requestMaxBytes` integer, required
  - `sites` SiteLimitsResponse, required
    - `maxFiles` integer, required
    - `maxFileBytes` integer, required
    - `maxTotalBytes` integer, required
    - `maxArchiveExpansionBytes` integer, required
    - `maxPathChars` integer, required
    - `maxPathBytes` integer, required
    - `maxNameBytes` integer, required
    - `defaultTtlDays` integer, required
    - `maxTtlDays` integer, required
    - `allowedExtensions` string[], required
    - `skippedFileNames` string[], required
    - `skippedRootFolders` string[], required
  - `html` HtmlLimitsResponse, required: HTML, Markdown, code or JSON page (`POST /api/html`); maxBytes counts UTF-8 bytes
    - `maxBytes` integer, required
    - `defaultTtlDays` integer, required
    - `maxTtlDays` integer, required
  - `json` JsonLimitsResponse, required: JSON document; maxDocs per namespace
    - `maxBytes` integer, required
    - `maxDocs` integer, required
    - `defaultTtlDays` integer, required
    - `maxTtlDays` integer, required
  - `kv` KvLimitsResponse, required: KV store; maxKeys per store
    - `maxValueBytes` integer, required
    - `maxKeys` integer, required
    - `defaultTtlDays` integer, required
    - `maxTtlDays` integer, required
  - `files` FileLimitsResponse, required: File upload; maxFiles per namespace
    - `maxFileBytes` integer, required
    - `maxVideoBytes` integer, required
    - `maxAudioBytes` integer, required
    - `maxFiles` integer, required
    - `defaultTtlDays` integer, required
    - `maxTtlDays` integer, required
  - `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
    - `enabled` boolean, required: Always true when present
    - `limit` integer, required: Hostnames the caller's profile may hold (profile grant or the default)
    - `used` integer: Hostnames the profile holds; absent when no profile resolves and on /api/limits
  - `linkNames` LinkNamesBlock, required: Link names: `enabled` = names can be set now; existing named addresses keep working either way
    - `enabled` boolean

## Other responses

- `429`: Rate limit exceeded for this IP

## Changes

- **2026-11-21** `19a6c5561e70`: 2 info
  - added the optional property `level` to the response with the `429` status
  - added the required property `linkNames` to the response with the `200` status
- **2026-11-11** `957711dab4b5`: 2 info
  - added the optional property `challengeUrl` to the response with the `429` status
  - added the optional property `siteKey` to the response with the `429` status
- **2026-11-10** `e34e8877bb89`: 3 info
  - added the optional property `customDomains` to the response with the `200` status
  - added the optional property `reason` to the response with the `429` status
  - added the optional property `used` to the response with the `429` status
- **2026-11-05** `bcf7485577e9`: 2 info
  - removed the `created_warned` enum value from the `result/oneOf[#/components/schemas/PublicationResult]/action` response property for the response status `429`
  - removed the `warned` enum value from the `result/oneOf[#/components/schemas/PublicationResult]/code` response property for the response status `429`
- **2026-11-01** `d8cba139da9d`: 1 info
  - added the optional property `resourceUrl` to the response with the `429` status

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/limits/get.md)

---

[API](https://skmtc.dev/brewpage/apis/brewpage-api.md) - [All operations](https://skmtc.dev/brewpage/apis/brewpage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brewpage/apis/brewpage-api/revisions/78d2720a18a9?raw)
