Browse the API docs

Themes

The store's themes: the published one shoppers see, and others being prepared. Publishing a theme makes it live straight away.

Endpoints#

Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.

The theme object#

What the endpoints below return for one theme, and the payload of the themes/create, themes/update, themes/publish webhooks.

theme
{
  "id": "cm2theme0001",
  "name": "Holiday edit",
  "role": "unpublished",
  "preset": "loom",
  "created_at": "2026-10-20T09:12:00.000Z",
  "updated_at": "2026-10-24T16:40:00.000Z",
  "previewable": true,
  "processing": false
}

List themes#

GET/themes.jsonread_themes

Every theme in the store: the live one (role main) first, then the others.

Query parameters
ParameterDescription
rolemain or unpublished.
fieldsComma-separated fields to return.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/themes.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "themes": [
    {
      "id": "cm2theme0001",
      "name": "Holiday edit",
      "role": "unpublished",
      "preset": "loom",
      "created_at": "2026-10-20T09:12:00.000Z",
      "updated_at": "2026-10-24T16:40:00.000Z",
      "previewable": true,
      "processing": false
    }
  ]
}

Get a theme#

GET/themes/{id}.jsonread_themes
Request
curl "https://store.weftgrid.com/api/admin/2026-10/themes/$THEME_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "theme": {
    "id": "cm2theme0001",
    "name": "Holiday edit",
    "role": "unpublished",
    "preset": "loom",
    "created_at": "2026-10-20T09:12:00.000Z",
    "updated_at": "2026-10-24T16:40:00.000Z",
    "previewable": true,
    "processing": false
  }
}

Create a theme#

POST/themes.jsonwrite_themes

Adds a theme from the theme library (preset; loom when left out), unpublished unless role is main, which publishes it straight away. The store's plan limits how many themes it can have. Fires themes/create (and themes/publish).

Request body
{
  "theme": {
    "name": "Holiday edit",
    "preset": "loom",
    "role": "unpublished"
  }
}
Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/themes.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "theme": {
    "name": "Holiday edit",
    "preset": "loom",
    "role": "unpublished"
  }
}'
Example responseShow
{
  "theme": {
    "id": "cm2theme0001",
    "name": "Holiday edit",
    "role": "unpublished",
    "preset": "loom",
    "created_at": "2026-10-20T09:12:00.000Z",
    "updated_at": "2026-10-24T16:40:00.000Z",
    "previewable": true,
    "processing": false
  }
}

Update a theme#

PUT/themes/{id}.jsonwrite_themes

Renames a theme, or publishes it with "role": "main" (the live theme becomes unpublished). To unpublish the live theme, publish another one. Fires themes/update or themes/publish.

Request body
{
  "theme": {
    "name": "Holiday edit 2026",
    "role": "main"
  }
}
Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/themes/$THEME_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "theme": {
    "name": "Holiday edit 2026",
    "role": "main"
  }
}'
Example responseShow
{
  "theme": {
    "id": "cm2theme0001",
    "name": "Holiday edit 2026",
    "role": "main",
    "preset": "loom",
    "created_at": "2026-10-20T09:12:00.000Z",
    "updated_at": "2026-10-24T16:40:00.000Z",
    "previewable": true,
    "processing": false
  }
}

Delete a theme#

DELETE/themes/{id}.jsonwrite_themes

Deletes an unpublished theme and its files. The live theme can't be deleted. Fires themes/delete.

Request
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/themes/$THEME_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "theme": {
    "id": "cm2theme0001",
    "name": "Holiday edit",
    "role": "unpublished",
    "preset": "loom",
    "created_at": "2026-10-20T09:12:00.000Z",
    "updated_at": "2026-10-24T16:40:00.000Z",
    "previewable": true,
    "processing": false
  }
}