Skip to content

Listing themes ​

Last updated View as Markdown

Endpoint: https://api.youcan.shop/themes

Method: GET

Required Scopes ​

  • view-themes

Notes ​

  • In published, you get the themes installed on the store. In dev, you get the development themes.
  • The theme that visitors see has live set to true.
  • The classic theme has system set to classic. Every other theme has system set to themes.
  • You get the classic theme in published only while it is live.
  • Read the settings of the classic theme with Get classic theme. Translate its texts with the theme type.
  • Send a theme id as theme to list the translatable items of that theme.

Response ​

[200] Ok

json
{
  "dev": [],
  "published": [
    {
      "id": "st_3JgvYWTV47BvDHhbQpFu6KhUd4m",
      "name": "Chameleon",
      "size": 11596,
      "version": "4.9.2",
      "live": true,
      "system": "themes"
    }
  ]
}