Theme API
Read CallListShopStyles1
List a shop's theme styling: colors, Tailwind style classes, sizes, corners, shadows, aspect ratios, image positions and CSS, with saved values, defaults and the values in effect.
| Kind | Read API call |
|---|---|
| Method | GET or POST |
| URL | https://app.bubblehouse.com/api/v2023061/<shop>/ListShopStyles1 |
| Authentication | Shop TokenStaff Token |
Needs the styling view permission (or theme view). By default only saved values come back; filter all lists every styling setting the shop's theme supports.
A key is a block followed by a setting, such as banner.title.color. The block part is either a kind of block, which styles every block of that kind, or the ID of one block, which wins over the kind. Change values with UpdateShopStyles1.
Input
-
matchstring optionalReturn the keys matching this pattern, where
*matches any text:banner.*,*.string,tier.*.hero.image. -
filterstring optionalconfigured(the default) returns what is saved or in use;unconfiguredwhat is not;allboth. String lists also taketranslatedanduntranslated.unconfiguredandallneed the theme view permission. -
cursorstring optionalContinue a list: pass
next_cursorfrom the previous page. -
limitinteger optionalMost items to return. Defaults to 200; at most 2000.
Output
-
revisionstring requiredThe revision of the shop's configuration. Pass it to the matching write call as
expected_revision. -
The matching items in key order.
-
totalinteger requiredHow many items matched, on all pages.
-
next_cursorstring optionalSet when more items follow; pass it as
cursorto get them.
Usage Examples
Colors of the banner
Request
{
"match": "banner.*.color"
}
Response
{
"revision": "1086983a00000003:2:7:3",
"settings": [
{
"block": "banner",
"default": "{bg.color}",
"in_effect": "#ffffff",
"is_set": true,
"key": "banner.background.color",
"source": "theme",
"type": "color",
"value": "#ffffff"
}
],
"total": 1
}
Specific Errors
| Status | Error | Reason & Examples |
|---|---|---|
| 400 | bad_data |
An input is invalid. For example: |
| 403 | access_denied |
Your permissions do not allow this call or filter. |
Global Errors
| Status | Error | Reason & Examples |
|---|---|---|
| 401 | invalid_token |
The provided authentication token is invalid or has expired. For example: |