Browse the API docs

Articles

Blog posts.

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 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_content
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.
tagArticles with this tag.
authorArticles by this author.
handleThe 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 responseShow
{ "articles": [ … ] }

Count a blog's articles#

GET/blogs/{blog_id}/articles/count.jsonread_content
Query parameters
ParameterDescription
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 responseShow
{ "count": 3 }

Create an article#

POST/blogs/{blog_id}/articles.jsonwrite_content

body_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 responseShow
{
  "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_content
Request
curl "https://store.weftgrid.com/api/admin/2026-10/articles/$ARTICLE_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "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_content

Fields 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 responseShow
{
  "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_content
Request
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/articles/$ARTICLE_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{}