Theme API

Read Call

ListShopMedia1

List a shop's images and videos: those of theme blocks and those of tiers, tier features, rewards, ways to earn, milestones, assets, referral programs, voting choices and the Apple wallet pass, with file URLs. By default only the ones that are set.

Kind Read API call
Method GET or POST
URL https://app.bubblehouse.com/api/v2023061/<shop>/ListShopMedia1
Authentication Shop TokenStaff Token

Needs the media view permission or theme view. Theme images have keys like banner.background.image. Images of entities have keys like tier.1086983a00000123.hero.image or vendible.1086983a00000456.image, the same IDs that get_configuration shows. filter all also lists empty ones.

Replace or remove one with ReplaceShopMedia1.

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

Tier images

Request

{
  "match": "tier.*"
}

Response

{
  "revision": "1086983a00000003:2:7:3",
  "settings": [
    {
      "in_effect": "s1086983a00000003-f1086983a00000789-k2m9q4w7x1.png",
      "is_set": true,
      "key": "tier.1086983a00000123.hero.image",
      "size": 48211,
      "source": "entity",
      "type": "image",
      "url": "https://app.bubblehouse.com/uploaded/s1086983a00000003-f1086983a00000789-k2m9q4w7x1.png",
      "value": "s1086983a00000003-f1086983a00000789-k2m9q4w7x1.png"
    }
  ],
  "total": 1
}

Specific Errors

Status Error Reason & Examples
400 bad_data

An input is invalid.

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
TabularDataFormat1