Font Conversion API
Base path: /api/v1/fonts/. Python: client.fonts. API-key scope: convert
(scopes).
Endpoints
| Method | Path | Purpose |
|---|---|---|
POST | /upload/ | Upload font file → returns s3_key |
POST | /convert/ | Convert from s3_key → 202 { id, status } |
GET | /conversion/{id}/ | Poll conversion status |
GET | /{id}/download/ | Redirect to presigned URL |
POST | /validate/ | Check if conversion is supported without executing |
GET/POST | /inspect/ | Font metadata (family, weight, glyph count, unicode ranges) |
GET | /formats/ · /formats/{input_format}/ | Supported formats, and the outputs for one input |
GET | /quota/ | Your free-tier request window, including max_upload_mb |
GET | /health/ | Engine and storage status, last_conversion_at, config_max_upload_mb |
POST /convert/ also takes optional subset_text or subset_unicodes to keep only the glyphs
you need. Error codes are prefixed fonts., and a conversion that is not yours answers 404.
Supported formats
19 formats, 342 routes, served by 2 engines:
| Engine | Inputs | Outputs |
|---|---|---|
fonttools (fast) | ttf, otf, woff, woff2 | ttf, otf, woff, woff2 |
fontforge (full) | + eot, svg, pfa, pfb, ufo, dfont, ttc, bdf, pt3, t42, cff, sfd, fon, fnt, otb | same set |
fonttools is tried first when the route is supported; falls back to fontforge for anything else.
Limits
- Size: one cap for every caller, signed in or not, set by the service (100 MB by default).
GET /api/v1/fonts/quota/returns the current value asmax_upload_mb. A larger file toPOST /upload/answers413witherror: "fonts.file_too_large"and the samemax_upload_mb. - Free: 10 conversions / IP / 30 days by default;
/quota/returns the liverequests_max,window_daysandwindow_resets_at. - Signed in: the price of a conversion is on the rate card.
Worked example
# 1. Upload
curl -X POST https://indox.org/api/v1/fonts/upload/ \
-H "Authorization: Bearer $INDOX_API_KEY" \
-F "[email protected]"
# → {"s3_key": "production/input/2026/05/11/ttf/...", ...}
# 2. Convert
curl -X POST https://indox.org/api/v1/fonts/convert/ \
-H "Authorization: Bearer $INDOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"s3_key":"production/input/2026/05/11/ttf/...","target_format":"woff2"}'
# → {"id":"<uuid>","status":"pending", ...}
# 3. Poll, 4. Download