Articles
Blog posts.
Endpoints#
- GET
/blogs/{blog_id}/articles.jsonList a blog's articles - GET
/blogs/{blog_id}/articles/count.jsonCount a blog's articles - POST
/blogs/{blog_id}/articles.jsonCreate an article - GET
/articles/{id}.jsonGet an article - PUT
/articles/{id}.jsonUpdate an article - DELETE
/articles/{id}.jsonDelete an article
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 article object#
What the endpoints below return for one article.
article
{
"id": "cm2article01",
"blog_id": "cm2blog0001",
"title": "How to care for linen",
"handle": "how-to-care-for-linen",
"body_html": "<p>Linen gets softer with every wash…</p>",
"summary_html": "<p>Wash cool, skip the dryer, and embrace the creases.</p>",
"image": {
"src": "https://storeloom.example/seed/napkins.svg"
},
"author": "Sam Rivera",
"tags": "Care guide, Linen",
"published": true,
"published_at": "2026-10-02T09:00:00.000Z",
"seo_title": null,
"seo_description": null,
"created_at": "2026-10-01T15:20:00.000Z",
"updated_at": "2026-10-02T09:00:00.000Z"
}List a blog's articles#
GET
/blogs/{blog_id}/articles.jsonread_contentQuery parameters
| 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. |
tag | Articles with this tag. |
author | Articles by this author. |
handle | The article with this handle. |
Request
curl "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID/articles.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "articles": [ … ] }Count a blog's articles#
GET
/blogs/{blog_id}/articles/count.jsonread_contentQuery parameters
| Parameter | Description |
|---|---|
published_status, tag, author, created_at_*, updated_at_*, published_at_* | Same filters as the list. |
Request
curl "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID/articles/count.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "count": 3 }Create an article#
POST
/blogs/{blog_id}/articles.jsonwrite_contentbody_html and summary_html are sanitized. tags take a comma-separated string or a list. A future published_at schedules the article; published: false hides it. The author defaults to the app's name.
Request body
{
"article": {
"title": "Autumn in the studio",
"author": "Sam Rivera",
"body_html": "<p>New colors for the colder months.</p>",
"tags": "News, Behind the scenes",
"image": { "src": "https://example.com/studio.jpg" },
"published_at": "2026-11-01T09:00:00Z"
}
}Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID/articles.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"article": {
"title": "Autumn in the studio",
"author": "Sam Rivera",
"body_html": "<p>New colors for the colder months.</p>",
"tags": "News, Behind the scenes",
"image": { "src": "https://example.com/studio.jpg" },
"published_at": "2026-11-01T09:00:00Z"
}
}'Example responseShowHide
{
"article": {
"id": "cm2article01",
"blog_id": "cm2blog0001",
"title": "How to care for linen",
"handle": "how-to-care-for-linen",
"body_html": "<p>Linen gets softer with every wash…</p>",
"summary_html": "<p>Wash cool, skip the dryer, and embrace the creases.</p>",
"image": { "src": "https://storeloom.example/seed/napkins.svg" },
"author": "Sam Rivera",
"tags": "Care guide, Linen",
"published": true,
"published_at": "2026-10-02T09:00:00.000Z",
"seo_title": null,
"seo_description": null,
"created_at": "2026-10-01T15:20:00.000Z",
"updated_at": "2026-10-02T09:00:00.000Z"
}
}Get an article#
GET
/articles/{id}.jsonread_contentRequest
curl "https://store.weftgrid.com/api/admin/2026-10/articles/$ARTICLE_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"article": {
"id": "cm2article01",
"blog_id": "cm2blog0001",
"title": "How to care for linen",
"handle": "how-to-care-for-linen",
"body_html": "<p>Linen gets softer with every wash…</p>",
"summary_html": "<p>Wash cool, skip the dryer, and embrace the creases.</p>",
"image": { "src": "https://storeloom.example/seed/napkins.svg" },
"author": "Sam Rivera",
"tags": "Care guide, Linen",
"published": true,
"published_at": "2026-10-02T09:00:00.000Z",
"seo_title": null,
"seo_description": null,
"created_at": "2026-10-01T15:20:00.000Z",
"updated_at": "2026-10-02T09:00:00.000Z"
}
}Update an article#
PUT
/articles/{id}.jsonwrite_contentFields you leave out keep their values. Send blog_id to move the article to another blog.
Request body
{ "article": { "title": "How to care for linen (updated)", "tags": ["Care guide", "Linen"] } }Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/articles/$ARTICLE_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "article": { "title": "How to care for linen (updated)", "tags": ["Care guide", "Linen"] } }'Example responseShowHide
{
"article": {
"id": "cm2article01",
"blog_id": "cm2blog0001",
"title": "How to care for linen",
"handle": "how-to-care-for-linen",
"body_html": "<p>Linen gets softer with every wash…</p>",
"summary_html": "<p>Wash cool, skip the dryer, and embrace the creases.</p>",
"image": { "src": "https://storeloom.example/seed/napkins.svg" },
"author": "Sam Rivera",
"tags": "Care guide, Linen",
"published": true,
"published_at": "2026-10-02T09:00:00.000Z",
"seo_title": null,
"seo_description": null,
"created_at": "2026-10-01T15:20:00.000Z",
"updated_at": "2026-10-02T09:00:00.000Z"
}
}Delete an article#
DELETE
/articles/{id}.jsonwrite_contentRequest
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/articles/$ARTICLE_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{}