Skip to content

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

Terminal window
curl -X GET https://api.loomieo.com/v1/fonts \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
fontsrequiredlist of object
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: 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

NameTypeDescription
familyrequiredstring1 to 100 characters
licenceAttestedrequiredtrueThe merchant confirms: "I hold a web-font licence that covers embedding on my sites." Recorded with who and when.
Terminal window
curl -X POST https://api.loomieo.com/v1/fonts \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"family":"…","licenceAttested":"…"}'

Response 200

NameTypeDescription
fontrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 422: validation_failed
  • 429: 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

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X DELETE https://api.loomieo.com/v1/fonts/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
fontrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: font_not_found
  • 409: font_in_use
  • 422: validation_failed
  • 429: rate_limited

One custom font

GET /v1/fonts/{id}

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X GET https://api.loomieo.com/v1/fonts/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
fontrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: font_not_found
  • 422: validation_failed
  • 429: 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

NameInTypeDescription
idrequiredpathid
slotrequiredpath"regular" | "bold" | "italic" | "boldItalic"
Terminal window
curl -X PUT https://api.loomieo.com/v1/fonts/:id/files/:slot \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
fontrequiredobject
Errors
  • 400: bad_request, font_file_invalid
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: font_not_found
  • 422: validation_failed
  • 429: rate_limited
  • 503: font_storage_unavailable