---
title: "Upload Font"
method: POST
path: "/companies/{company_id}/fonts"
tags: ["fonts"]
---

# Upload Font

`POST /companies/{company_id}/fonts`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/fonts`
- Auth: none declared

One TrueType (.ttf) or OpenType (.otf) face.

The family, weight and style are read from the file, because they are what
the renderer matches. Uploading a face that already exists replaces it.
WOFF and WOFF2 are refused: the renderer cannot read them.

## Path parameters

- `company_id` string, uuid, required: Company id

## Request body `multipart/form-data`

- BodyUploadFontCompaniesCompanyIdFontsPost
  - `file` string, binary, required

## Response `201`

Successful Response

- CompanyFontOut: One uploaded face. ``family`` is read from the file, and is what a template stores.
  - `id` string, uuid, required
  - `family` string, required
  - `weight` integer, required
  - `style` string, required
  - `content_hash` string, required
  - `mime_type` string, required
  - `byte_size` integer, required
  - `original_filename` string, nullable, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
