Skip to content
Dashboard
Theme
Theme

Upload a custom font

POST /v1/branding/font: Upload a custom font.

View Markdown

POST /v1/branding/font

Stores a WOFF2 font on the assets host and returns its URL for font_url. The file must be a single WOFF2 font (no collections) of at most 512 KiB whose header and table directory are valid; it is served only from the assets host. Pro plan and above; other plans answer plan_limit_reached. Anything else answers font_invalid.

Scope
branding:write
Auth
Secret key (sk_…)
Since
1.0
  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

  • data string Required

    The file, standard base64 (padding required).

    min length 4 · max length 699052

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/branding/font" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": "example_data"
}'
Response 201
{
"object": "branding_font",
"font_url": "https://app.acme.com/callback",
"size_bytes": 1
}