Pages
Pages of the online store, like About or Contact.
Endpoints#
- GET
/pages.jsonList pages - GET
/pages/count.jsonCount pages - GET
/pages/{id}.jsonGet a page - POST
/pages.jsonCreate a page - PUT
/pages/{id}.jsonUpdate a page - DELETE
/pages/{id}.jsonDelete a page
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.
{
"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#
/pages.jsonread_contentThe store's online store pages, oldest first.
| Parameter | Description |
|---|---|
limit | Results per page, 1–250 (default 50). |
page_info | Cursor from the Link header for the next or previous page. |
since_id | Only results after this id. |
ids | Comma-separated ids. |
created_at_min / created_at_max | ISO 8601 bounds on creation time. |
updated_at_min / updated_at_max | ISO 8601 bounds on last change; use for incremental sync. |
fields | Comma-separated fields to return, e.g. id,title,updated_at. |
published_status | published (visible now), unpublished (hidden or scheduled) or any (default). |
published_at_min / published_at_max | ISO 8601 bounds on the publish date. |
title | Pages with exactly this title. |
handle | Comma-separated handles. |
curl "https://store.weftgrid.com/api/admin/2026-10/pages.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "pages": [ … ] }Count pages#
/pages/count.jsonread_content| Parameter | Description |
|---|---|
published_status, title, handle, created_at_*, updated_at_*, published_at_* | Same filters as the list. |
curl "https://store.weftgrid.com/api/admin/2026-10/pages/count.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "count": 4 }Get a page#
/pages/{id}.jsonread_contentcurl "https://store.weftgrid.com/api/admin/2026-10/pages/$PAGE_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"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#
/pages.jsonwrite_contentbody_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.
{
"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."
}
}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 responseShowHide
{
"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#
/pages/{id}.jsonwrite_contentFields you leave out keep their values. Send published: false (or published_at: null) to hide the page.
{ "page": { "body_html": "<p>Updated text.</p>", "published": false } }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 responseShowHide
{
"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#
/pages/{id}.jsonwrite_contentMenu links to the page are hidden from the storefront.
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/pages/$PAGE_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{}