API reference
Blog
List blog posts
/api/v1/blog/posts
Your shop’s blog posts, most recently edited first, in any status unless you filter. Each listing leaves out the body: get a post for it.
- Scope
- MCP tool
- blog_posts_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
statusquery · optional | enum | Only posts in this status |
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/blog/posts" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"id": "6a8c0e2f-4b1d-4f3a-9e5c-7d9b1f3a5c7e",
"slug": "caring-for-merino",
"title": "Caring for merino",
"section": "buying-guides",
"status": "published",
"published_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-11-20T09:00:00.000Z",
"cover": null
}
],
"next_cursor": null
}Get a blog post
/api/v1/blog/posts/{id}
One of your posts with its body as a Tiptap JSON document, its tags, featured products, and SEO fields.
- Scope
- MCP tool
- blog_posts_get
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl "https://3commerce.com/api/v1/blog/posts/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "6a8c0e2f-4b1d-4f3a-9e5c-7d9b1f3a5c7e",
"slug": "caring-for-merino",
"title": "Caring for merino",
"excerpt": "How to wash, dry, and store a merino sweater so it lasts.",
"section": "buying-guides",
"cover": null,
"body": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Wash it cold."
}
]
}
]
},
"tags": [
"care"
],
"product_slugs": [
"merino-crew"
],
"status": "published",
"published_at": "2026-11-20T09:00:00.000Z",
"seo_title": "",
"seo_description": "",
"author_name": "Maya Chen"
}Write a blog post
/api/v1/blog/posts
Writes a post on your shop’s journal, a draft unless you say otherwise. Publishing or scheduling also needs an excerpt and a body, and scheduling a time to come. A taken address answers 409.
- Scope
- MCP tool
- blog_posts_create
- Changes data
- Yes
- Idempotency-Key
- Accepted
Parameters
| Name | Type | Description |
|---|---|---|
titlebody · required | string | The title, up to 120 characters |
slugbody · optional | string | The address, lowercase letters, digits, and hyphens. Made from the title when left out |
excerptbody · optional | string | The summary, needed to publish |
sectionbody · optional | enum | The journal section it sits in |
coverbody · optional | object or null | The cover image, or null for none |
bodybody · optional | object | The body as a Tiptap (ProseMirror) JSON document, `{ "type": "doc", "content": [...] }`. Unknown nodes are dropped |
tagsbody · optional | array of string | Up to 6 tags |
product_slugsbody · optional | array of string | Your published products to feature, by slug. Others are dropped |
statusbody · optional | enum | `draft`, `scheduled`, or `published` |
published_atbody · optional | string (date-time) or null | When a scheduled post goes live, ISO 8601 |
seo_titlebody · optional | string | The search title |
seo_descriptionbody · optional | string | The meta description |
author_namebody · optional | string | The byline. The shop name when left blank |
Request
curl -X POST "https://3commerce.com/api/v1/blog/posts" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"title": "Linen overshirt"
}'Response
{
"id": "6a8c0e2f-4b1d-4f3a-9e5c-7d9b1f3a5c7e",
"slug": "caring-for-merino",
"title": "Caring for merino",
"excerpt": "How to wash, dry, and store a merino sweater so it lasts.",
"section": "buying-guides",
"cover": null,
"body": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Wash it cold."
}
]
}
]
},
"tags": [
"care"
],
"product_slugs": [
"merino-crew"
],
"status": "published",
"published_at": "2026-11-20T09:00:00.000Z",
"seo_title": "",
"seo_description": "",
"author_name": "Maya Chen"
}Edit a blog post
/api/v1/blog/posts/{id}
Changes the fields you send and keeps the rest, with the same checks as the dashboard editor. Set `status` to publish, schedule, or move a post back to draft.
- Scope
- MCP tool
- blog_posts_update
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
titlebody · optional | string | The title, up to 120 characters |
slugbody · optional | string | The address, lowercase letters, digits, and hyphens. Made from the title when left out |
excerptbody · optional | string | The summary, needed to publish |
sectionbody · optional | enum | The journal section it sits in |
coverbody · optional | object or null | The cover image, or null for none |
bodybody · optional | object | The body as a Tiptap (ProseMirror) JSON document, `{ "type": "doc", "content": [...] }`. Unknown nodes are dropped |
tagsbody · optional | array of string | Up to 6 tags |
product_slugsbody · optional | array of string | Your published products to feature, by slug. Others are dropped |
statusbody · optional | enum | `draft`, `scheduled`, or `published` |
published_atbody · optional | string (date-time) or null | When a scheduled post goes live, ISO 8601 |
seo_titlebody · optional | string | The search title |
seo_descriptionbody · optional | string | The meta description |
author_namebody · optional | string | The byline. The shop name when left blank |
Request
curl -X PATCH "https://3commerce.com/api/v1/blog/posts/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "6a8c0e2f-4b1d-4f3a-9e5c-7d9b1f3a5c7e",
"slug": "caring-for-merino",
"title": "Caring for merino",
"excerpt": "How to wash, dry, and store a merino sweater so it lasts.",
"section": "buying-guides",
"cover": null,
"body": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Wash it cold."
}
]
}
]
},
"tags": [
"care"
],
"product_slugs": [
"merino-crew"
],
"status": "published",
"published_at": "2026-11-20T09:00:00.000Z",
"seo_title": "",
"seo_description": "",
"author_name": "Maya Chen"
}Delete a blog post
/api/v1/blog/posts/{id}
Deletes 1 of your posts, whatever its status. Its address stops working at once.
- Scope
- MCP tool
- blog_posts_delete
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X DELETE "https://3commerce.com/api/v1/blog/posts/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"ok": true
}