Browse the API docs

Pages

Pages of the online store, like About or Contact.

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 page object#

What the endpoints below return for one page.

page
{
  "id": "cm2page0001",
  "title": "About us",
  "handle": "about-us",
  "body_html": "<p>Juniper & Co. started in a Portland studio…</p>",
  "template_suffix": null,
  "published": true,
  "published_at": "2026-09-14T10:00:00.000Z",
  "seo_title": null,
  "seo_description": "Who we are and how our goods are made.",
  "created_at": "2026-09-14T10:00:00.000Z",
  "updated_at": "2026-10-20T08:12:00.000Z"
}

List pages#

GET/pages.jsonread_content

The store's online store pages, oldest first.

Query parameters
ParameterDescription
limitResults per page, 1–250 (default 50).
page_infoCursor from the Link header for the next or previous page.
since_idOnly results after this id.
idsComma-separated ids.
created_at_min / created_at_maxISO 8601 bounds on creation time.
updated_at_min / updated_at_maxISO 8601 bounds on last change; use for incremental sync.
fieldsComma-separated fields to return, e.g. id,title,updated_at.
published_statuspublished (visible now), unpublished (hidden or scheduled) or any (default).
published_at_min / published_at_maxISO 8601 bounds on the publish date.
titlePages with exactly this title.
handleComma-separated handles.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/pages.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "pages": [ … ] }

Count pages#

GET/pages/count.jsonread_content
Query parameters
ParameterDescription
published_status, title, handle, created_at_*, updated_at_*, published_at_*Same filters as the list.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/pages/count.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "count": 4 }

Get a page#

GET/pages/{id}.jsonread_content
Request
curl "https://store.weftgrid.com/api/admin/2026-10/pages/$PAGE_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "page": {
    "id": "cm2page0001",
    "title": "About us",
    "handle": "about-us",
    "body_html": "<p>Juniper & Co. started in a Portland studio…</p>",
    "template_suffix": null,
    "published": true,
    "published_at": "2026-09-14T10:00:00.000Z",
    "seo_title": null,
    "seo_description": "Who we are and how our goods are made.",
    "created_at": "2026-09-14T10:00:00.000Z",
    "updated_at": "2026-10-20T08:12:00.000Z"
  }
}

Create a page#

POST/pages.jsonwrite_content

body_html is sanitized: scripts, styles and unsafe links are removed. The handle is made from the title when left out, and made unique. Set template_suffix to "contact" to show a contact form, or to an alternate page template's suffix (like "faq") to use that template of the live theme. Pages are visible unless published is false.

Request body
{
  "page": {
    "title": "Size guide",
    "body_html": "<h2>Shirts</h2><p>Our shirts run true to size.</p>",
    "published": true,
    "seo_description": "Measurements for every size we make."
  }
}
Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/pages.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "page": {
    "title": "Size guide",
    "body_html": "<h2>Shirts</h2><p>Our shirts run true to size.</p>",
    "published": true,
    "seo_description": "Measurements for every size we make."
  }
}'
Example responseShow
{
  "page": {
    "id": "cm2page0001",
    "title": "About us",
    "handle": "about-us",
    "body_html": "<p>Juniper & Co. started in a Portland studio…</p>",
    "template_suffix": null,
    "published": true,
    "published_at": "2026-09-14T10:00:00.000Z",
    "seo_title": null,
    "seo_description": "Who we are and how our goods are made.",
    "created_at": "2026-09-14T10:00:00.000Z",
    "updated_at": "2026-10-20T08:12:00.000Z"
  }
}

Update a page#

PUT/pages/{id}.jsonwrite_content

Fields you leave out keep their values. Send published: false (or published_at: null) to hide the page.

Request body
{ "page": { "body_html": "<p>Updated text.</p>", "published": false } }
Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/pages/$PAGE_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "page": { "body_html": "<p>Updated text.</p>", "published": false } }'
Example responseShow
{
  "page": {
    "id": "cm2page0001",
    "title": "About us",
    "handle": "about-us",
    "body_html": "<p>Juniper & Co. started in a Portland studio…</p>",
    "template_suffix": null,
    "published": true,
    "published_at": "2026-09-14T10:00:00.000Z",
    "seo_title": null,
    "seo_description": "Who we are and how our goods are made.",
    "created_at": "2026-09-14T10:00:00.000Z",
    "updated_at": "2026-10-20T08:12:00.000Z"
  }
}

Delete a page#

DELETE/pages/{id}.jsonwrite_content

Menu links to the page are hidden from the storefront.

Request
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/pages/$PAGE_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{}