Skip to content

API reference

Blog

Write, publish, and delete the shop’s blog posts.

List blog posts

GET/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
blog:read
MCP tool
blog_posts_list
Changes data
No

Parameters

NameTypeDescription
statusquery · optionalenumOnly posts in this statusone of draft, scheduled, published
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/blog/posts" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

GET/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
blog:read
MCP tool
blog_posts_get
Changes data
No

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl "https://3commerce.com/api/v1/blog/posts/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

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
blog:write
MCP tool
blog_posts_create
Changes data
Yes
Idempotency-Key
Accepted

Parameters

NameTypeDescription
titlebody · requiredstringThe title, up to 120 characters1-120 chars
slugbody · optionalstringThe address, lowercase letters, digits, and hyphens. Made from the title when left outmax 80 chars
excerptbody · optionalstringThe summary, needed to publishmax 300 chars
sectionbody · optionalenumThe journal section it sits inone of buying-guides, style-notes, care, selling
coverbody · optionalobject or nullThe cover image, or null for none
bodybody · optionalobjectThe body as a Tiptap (ProseMirror) JSON document, `{ "type": "doc", "content": [...] }`. Unknown nodes are dropped
tagsbody · optionalarray of stringUp to 6 tagsmax 6 items
product_slugsbody · optionalarray of stringYour published products to feature, by slug. Others are droppedmax 8 items
statusbody · optionalenum`draft`, `scheduled`, or `published`one of draft, scheduled, published
published_atbody · optionalstring (date-time) or nullWhen a scheduled post goes live, ISO 8601
seo_titlebody · optionalstringThe search titlemax 70 chars
seo_descriptionbody · optionalstringThe meta descriptionmax 160 chars
author_namebody · optionalstringThe byline. The shop name when left blankmax 80 chars

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

201 Created
{
  "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

PATCH/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
blog:write
MCP tool
blog_posts_update
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id
titlebody · optionalstringThe title, up to 120 charactersmax 120 chars
slugbody · optionalstringThe address, lowercase letters, digits, and hyphens. Made from the title when left outmax 80 chars
excerptbody · optionalstringThe summary, needed to publishmax 300 chars
sectionbody · optionalenumThe journal section it sits inone of buying-guides, style-notes, care, selling
coverbody · optionalobject or nullThe cover image, or null for none
bodybody · optionalobjectThe body as a Tiptap (ProseMirror) JSON document, `{ "type": "doc", "content": [...] }`. Unknown nodes are dropped
tagsbody · optionalarray of stringUp to 6 tagsmax 6 items
product_slugsbody · optionalarray of stringYour published products to feature, by slug. Others are droppedmax 8 items
statusbody · optionalenum`draft`, `scheduled`, or `published`one of draft, scheduled, published
published_atbody · optionalstring (date-time) or nullWhen a scheduled post goes live, ISO 8601
seo_titlebody · optionalstringThe search titlemax 70 chars
seo_descriptionbody · optionalstringThe meta descriptionmax 160 chars
author_namebody · optionalstringThe byline. The shop name when left blankmax 80 chars

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

200 OK
{
  "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

DELETE/api/v1/blog/posts/{id}

Deletes 1 of your posts, whatever its status. Its address stops working at once.

Scope
blog:write
MCP tool
blog_posts_delete
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (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

200 OK
{
  "ok": true
}