Browse the API docs

Blogs

Blogs of the online store.

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

What the endpoints below return for one blog.

blog
{
  "id": "cm2blog0001",
  "title": "Journal",
  "handle": "journal",
  "articles_count": 3,
  "created_at": "2026-09-01T09:00:00.000Z",
  "updated_at": "2026-09-01T09:00:00.000Z"
}

List blogs#

GET/blogs.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.
handleComma-separated handles.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/blogs.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "blogs": [{ "id": "…", "title": "Journal", "handle": "journal", "articles_count": 3, … }] }

Count blogs#

GET/blogs/count.jsonread_content
Request
curl "https://store.weftgrid.com/api/admin/2026-10/blogs/count.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "count": 1 }

Get a blog#

GET/blogs/{id}.jsonread_content
Request
curl "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "blog": { "id": "cm2blog0001", "title": "Journal", "handle": "journal", "articles_count": 3, "created_at": "2026-09-01T09:00:00.000Z", "updated_at": "2026-09-01T09:00:00.000Z" } }

Create a blog#

POST/blogs.jsonwrite_content

The handle is made from the title when left out, and made unique. The blog is shown at /blogs/<handle>.

Request body
{ "blog": { "title": "Recipes" } }
Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/blogs.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "blog": { "title": "Recipes" } }'
Example responseShow
{ "blog": { "id": "cm2blog0001", "title": "Journal", "handle": "journal", "articles_count": 3, "created_at": "2026-09-01T09:00:00.000Z", "updated_at": "2026-09-01T09:00:00.000Z" } }

Update a blog#

PUT/blogs/{id}.jsonwrite_content

Renaming keeps the handle unless you send a new one.

Request body
{ "blog": { "title": "The journal" } }
Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "blog": { "title": "The journal" } }'
Example responseShow
{ "blog": { "id": "cm2blog0001", "title": "Journal", "handle": "journal", "articles_count": 3, "created_at": "2026-09-01T09:00:00.000Z", "updated_at": "2026-09-01T09:00:00.000Z" } }

Delete a blog#

DELETE/blogs/{id}.jsonwrite_content

Deletes the blog and all of its articles.

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