Fonts API
Upload custom fonts for themes. All requests need a secret key; see REST API for keys, errors and limits.
The organization's custom fonts, oldest first, with theme usage
GET /v1/fonts
curl -X GET https://api.loomieo.com/v1/fonts \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
fontsrequired | list of object |
Errors
401:auth_unauthenticated403:forbidden422:validation_failed429:rate_limited
Add a font family with the licence attestation
POST /v1/fonts
Add a font family with the licence attestation; then upload its faces
Body
| Name | Type | Description |
|---|---|---|
familyrequired | string | 1 to 100 characters |
licenceAttestedrequired | true | The merchant confirms: "I hold a web-font licence that covers embedding on my sites." Recorded with who and when. |
curl -X POST https://api.loomieo.com/v1/fonts \ -H "Authorization: Bearer $LUMIEO_KEY" \ -H "Content-Type: application/json" \ -d '{"family":"…","licenceAttested":"…"}'Response 200
| Name | Type | Description |
|---|---|---|
fontrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope422:validation_failed429:rate_limited
Delete a font no theme uses, with its files
DELETE /v1/fonts/{id}
Delete a font no theme uses, with its files; its attestations are kept
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id |
curl -X DELETE https://api.loomieo.com/v1/fonts/:id \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
fontrequired | object |
Errors
401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:font_not_found409:font_in_use422:validation_failed429:rate_limited
One custom font
GET /v1/fonts/{id}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id |
curl -X GET https://api.loomieo.com/v1/fonts/:id \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
fontrequired | object |
Errors
401:auth_unauthenticated403:forbidden404:font_not_found422:validation_failed429:rate_limited
Upload one face as WOFF2
PUT /v1/fonts/{id}/files/{slot}
Upload one face as WOFF2 (≤ 500 kB), replacing the slot's file; stored in the EU bucket
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id | |
slotrequired | path | "regular" | "bold" | "italic" | "boldItalic" |
curl -X PUT https://api.loomieo.com/v1/fonts/:id/files/:slot \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
fontrequired | object |
Errors
400:bad_request,font_file_invalid401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:font_not_found422:validation_failed429:rate_limited503:font_storage_unavailable