Skip to content

Themes API

Looks for widgets and screens. All requests need a secret key; see REST API for keys, errors and limits.

List themes

GET /v1/themes

Parameters

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
Terminal window
curl -X GET https://api.loomieo.com/v1/themes \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
paginationrequiredobject
themesrequiredlist of object
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: rate_limited

Create a theme from a preset

POST /v1/themes

Create a theme from a preset (minimal, bold, editorial) with optional token overrides

Body

NameTypeDescription
namerequiredstring1 to 120 characters
behaviorobjectPlayer settings over the player style, by registry key (e.g. `controls.tap`). default {}
playerStyle"auto" | "standard" | "swipe" | "loop" | "clip" | "story" | "watch"The player style: `auto` (match each widget's format: carousels and bubbles play Standard, stories play Story) or a named style. default "auto"
preset"minimal" | "bold" | "editorial" | "pulse" | "bloom" | "zest" | "theater" | "studio" | "glass"default "minimal"
screenobjectHow screens draw this theme (docs/specs/screens.md §16): `scheme` (`dark`, the default, or `light`) and a `sale` colour (`#rrggbb`, or null for a red that reads). default {"sale":null,"scheme":"dark"}
tokensobjectdefault {}
Terminal window
curl -X POST https://api.loomieo.com/v1/themes \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'

Response 200

NameTypeDescription
themerequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 422: validation_failed
  • 429: rate_limited

Delete a theme

DELETE /v1/themes/{id}

Delete a theme; sites using it as their default fall back to none

Parameters

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

Response 200

NameTypeDescription
themerequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: theme_not_found
  • 422: validation_failed
  • 429: rate_limited

One theme, with its live experience count

GET /v1/themes/{id}

Parameters

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

Response 200

NameTypeDescription
themerequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: theme_not_found
  • 422: validation_failed
  • 429: rate_limited

Rename a theme, switch its preset or player style, or replace its token or behaviour overrides

PATCH /v1/themes/{id}

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
behaviorobjectPlayer settings over the player style, by registry key (e.g. `controls.tap`).
namestring1 to 120 characters
playerStyle"auto" | "standard" | "swipe" | "loop" | "clip" | "story" | "watch"The player style: `auto` (match each widget's format: carousels and bubbles play Standard, stories play Story) or a named style.
preset"minimal" | "bold" | "editorial" | "pulse" | "bloom" | "zest" | "theater" | "studio" | "glass"
screenobjectHow screens draw this theme (docs/specs/screens.md §16): `scheme` (`dark`, the default, or `light`) and a `sale` colour (`#rrggbb`, or null for a red that reads).
tokensobject
Terminal window
curl -X PATCH https://api.loomieo.com/v1/themes/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
themerequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: theme_not_found
  • 422: validation_failed
  • 429: rate_limited