Theme API

Read Call

ListShopStyles1

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

  • match string optional

    Return the keys matching this pattern, where * matches any text: banner.*, *.string, tier.*.hero.image.

  • filter string optional

    configured (the default) returns what is saved or in use; unconfigured what is not; all both. String lists also take translated and untranslated. unconfigured and all need the theme view permission.

  • cursor string optional

    Continue a list: pass next_cursor from the previous page.

  • limit integer optional

    Most items to return. Defaults to 200; at most 2000.

Output

  • revision string required

    The revision of the shop's configuration. Pass it to the matching write call as expected_revision.

  • settings array of ThemeSettingInfo1 required

    The matching items in key order.

  • total integer required

    How many items matched, on all pages.

  • next_cursor string optional

    Set when more items follow; pass it as cursor to 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: filter must be configured, unconfigured, all, translated or untranslated

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: The token has expired

Previous
ListShopStrings1