# Blog Posts

Create, read, update, delete, bulk manage, translate, and subscribe to blog posts through the Store API.

Blog posts contain a title, sanitized HTML content, an author, optional categories and tags, and publishing and SEO settings. Reads require `read_blog`; writes require `write_blog`. Setting a non-empty `featured_image_id` also requires `read_files`.

Create a post as a draft, publish it, or schedule its publication. `author_ref` must identify an author in the same store. Category and tag arrays replace the current assignments when supplied; omit them to preserve assignments or send `[]` to clear them. A JSON `null` clears an optional field such as excerpt, SEO, the featured image, or `publish_at`. Omitting the field leaves the stored value. An omitted or empty update slug preserves the current address. `POST /blog/posts/{id}/preview` returns a storefront URL that shows the post as it is now; anyone with the link can open it for 2 hours, so share it only with people who may see the unpublished post. The response is not cacheable.

Large deletions and author reassignments run as jobs. Deleting posts that hold more than 100 comments (one post, or a bulk selection together) archives them at once, sending `blog_posts/update`, and a background job removes the comments and then the posts; the response carries the job in `lifecycle`. A scheduled post that cannot be published reports `schedule_state` and a merchant message.

Translate post content through [Blog Post translations](/store-api/translations/blog/posts). Translation calls require the corresponding blog and translation scopes. Metafield definitions are discovered by namespace and key; the dedicated metafield endpoints document their access rules.

## Endpoints

## Blog Post limits

`GET /api/2025-01/blog/posts/limits`

Returns the per-field maximum lengths, enum values, and request caps that apply to Blog Post endpoints. `max_per_store` is this store's plan cap, `count` is how many exist now, and `usage` is the label as Tringify shows it, in English. `status_options` lists each status `value` with its English display `label`.

Scope: `read_blog`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/limits' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "bulk_max": 200,
    "content_max_length": 100000,
    "count": 2,
    "excerpt_max_length": 5000,
    "list_max_limit": 100,
    "list_page_size": 50,
    "max_categories_per_post": 20,
    "max_per_store": 10,
    "max_tags_per_post": 30,
    "page_size_options": [
      20,
      50,
      100
    ],
    "search_max_length": 200,
    "seo_description_max_length": 160,
    "seo_title_max_length": 70,
    "slug_max_length": 200,
    "sort_columns": [
      "title",
      "status",
      "author",
      "comment_count",
      "published_at",
      "publish_at",
      "created_at",
      "updated_at"
    ],
    "status_options": [
      {
        "value": "draft",
        "label": "Draft"
      },
      {
        "value": "scheduled",
        "label": "Scheduled"
      },
      {
        "value": "published",
        "label": "Published"
      },
      {
        "value": "archived",
        "label": "Archived"
      }
    ],
    "title_max_length": 200,
    "usage": "Blog posts 2 of 10"
  },
  "success": true
}
```

## List blog posts

`GET /api/2025-01/blog/posts`

Returns paginated Blog Posts. `total` counts matches for the current filters; `store_total` counts all records in the store and can be compared with the store capacity returned by the limits endpoint. Filter by search, status, author, category, tag, or publication date. Invalid pagination, UUID, and sort parameters are rejected instead of silently defaulted. Each blog post carries `status_display`, its `status` as shown in Tringify, in English. `storefront_url` is the canonical absolute URL on the store's primary domain. `storefront_path` is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Scope: `read_blog`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts?author_ref=44bf70b7-88e2-4770-a30e-d7a1db522499&category_id=3a588f80-fd8c-4d46-af1b-00a1c4a7f85a&limit=20&page=1&publication_date_from=2026-02-01&publication_date_to=2026-02-28&search=launch-notes&sort_by=created_at&sort_direction=desc&status=published&tag_id=6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "items": [
      {
        "author": {
          "avatar_cdn_url": "https://cdn.example.com/avery.jpg",
          "avatar_media_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
          "avatar_url": "https://store.example.com/files/avery.jpg",
          "bio": "Writes product and company updates.",
          "created_at": "2026-01-02T06:00:00-04:00",
          "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
          "name": "Avery Stone",
          "post_count": 4,
          "slug": "avery-stone",
          "updated_at": "2026-02-09T11:30:00-04:00"
        },
        "categories": [
          {
            "created_at": "2026-06-09T12:00:00-04:00",
            "description": "Updates and announcements from the company.",
            "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
            "name": "Company News",
            "post_count": 8,
            "robots": "index",
            "seo_description": "Read company updates, product notes, and announcements.",
            "seo_title": "Company News",
            "slug": "company-news",
            "social_image_id": null,
            "storefront_path": "/blog-category/company-news",
            "storefront_url": "https://store.example.com/blog-category/company-news",
            "template_handle": "default_blog_category",
            "updated_at": "2026-06-09T12:00:00-04:00"
          }
        ],
        "category_count": 1,
        "comment_count": 3,
        "created_at": "2026-01-05T08:00:00-04:00",
        "excerpt": "What changed in this release.",
        "featured_image_cdn_url": "https://cdn.example.com/launch.jpg",
        "featured_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
        "featured_image_url": "https://cdn.example.com/launch.jpg",
        "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
        "publish_at": "2026-02-10T09:00:00-05:00",
        "published_at": "2026-02-10T10:00:00-04:00",
        "schedule_message": "",
        "schedule_state": "",
        "slug": "launch-notes",
        "status": "published",
        "status_display": "Published",
        "storefront_path": "/blog/launch-notes",
        "storefront_url": "https://store.example.com/blog/launch-notes",
        "tags": [],
        "title": "Launch notes",
        "updated_at": "2026-02-10T10:00:00-04:00"
      }
    ],
    "limit": 20,
    "page": 1,
    "sort_by": "created_at",
    "sort_direction": "desc",
    "store_total": 1,
    "total": 1
  },
  "success": true
}
```

## Search blog posts

`GET /api/2025-01/blog/posts/search`

Returns lightweight post options ordered by title. `limit` defaults to 50 and may be at most 100 (the Blog Post contract's search limits); a larger value is refused with `VALIDATION_LIST_INVALID_LIMIT`. When `has_more` is true, send `next_cursor` as `cursor` to read the next page.

Scope: `read_blog`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/search?limit=10&offset=0&q=launch&status=published' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "has_more": true,
    "next_cursor": "eyJpZCI6IjVmZjdkNGVhIn0",
    "options": [
      {
        "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
        "name": "Launch notes"
      }
    ],
    "total": 2
  },
  "success": true
}
```

## Get a blog post

`GET /api/2025-01/blog/posts/{id}`

Returns the Blog Post if it belongs to the token's store. `status_display` is its `status` as shown in Tringify, in English. `storefront_url` is the canonical absolute URL on the store's primary domain. `storefront_path` is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Scope: `read_blog`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "author": {
      "avatar_cdn_url": "https://cdn.example.com/avery.jpg",
      "avatar_media_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
      "avatar_url": "https://store.example.com/files/avery.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-01-02T06:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "post_count": 4,
      "slug": "avery-stone",
      "updated_at": "2026-02-09T11:30:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "storefront_path": "/blog-category/company-news",
        "storefront_url": "https://store.example.com/blog-category/company-news",
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "category_ids": [
      "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a"
    ],
    "comment_count": 3,
    "content": "\u003cp\u003eWhat changed in this release.\u003c/p\u003e",
    "created_at": "2026-01-05T08:00:00-04:00",
    "excerpt": "What changed in this release.",
    "featured_image_cdn_url": "https://cdn.example.com/launch.jpg",
    "featured_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "featured_image_url": "https://cdn.example.com/launch.jpg",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": "2026-02-10T09:00:00-05:00",
    "publish_at_iso": "2026-02-10T09:00:00-05:00",
    "published_at": "2026-02-10T10:00:00-04:00",
    "revision": 1,
    "robots": "index",
    "schedule_message": "",
    "schedule_state": "",
    "seo_description": "Read the latest launch notes.",
    "seo_title": "Launch notes",
    "slug": "launch-notes",
    "social_image_id": "6c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
    "status": "published",
    "status_display": "Published",
    "storefront_path": "/blog/launch-notes",
    "storefront_url": "https://store.example.com/blog/launch-notes",
    "tag_ids": [
      "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
    ],
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 8,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-02-10T10:00:00-04:00"
  },
  "success": true
}
```

## Preview a blog post

`POST /api/2025-01/blog/posts/{id}/preview`

Returns `url`, the blog post's storefront address with a signed `blog_preview` parameter that shows it as it is now, published or not. The link works for 2 hours, and anyone who has it can open the preview in that time; share it only with people who may see the unpublished blog post. Send no body, or `{}`.

Scope: `read_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/preview' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"url":"https://store.example.com/blog/launch-notes?blog_preview=eyJzIjoi..."}}
```

## List blog post metafields

`GET /api/2025-01/blog/posts/{id}/metafields`

Definitions are filtered through the token's access rules.

Scope: `read_blog`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/metafields' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "limit": 50,
    "metafields": [
      {
        "created_at": "2026-09-01T08:00:00-04:00",
        "definition": {
          "app_access": "private",
          "buyer_access": "hidden",
          "created_at": "2026-09-01T08:00:00-04:00",
          "id": "642a703a-9639-4d25-8d02-426f6f9f7d12",
          "is_filterable": false,
          "is_searchable": false,
          "is_storefront_visible": true,
          "is_translatable": true,
          "key": "subtitle",
          "merchant_access": "read_write",
          "name": "Subtitle",
          "namespace": "details",
          "owner_type": "blog_post",
          "sort_order": 0,
          "type": "string",
          "updated_at": "2026-09-01T08:00:00-04:00",
          "usage_count": 0
        },
        "updated_at": "2026-09-01T08:00:00-04:00",
        "value": "Company news"
      }
    ],
    "page": 1,
    "total": 1,
    "total_pages": 1
  },
  "success": true
}
```

## Set blog post metafields

`PUT /api/2025-01/blog/posts/{id}/metafields`

Send namespace-and-key entries. A string value creates or replaces a value; `null` or an empty string deletes it. App tokens (`tpat_`, `tast_`) write values only for definitions their app owns; a definition another app shares is readable but not writable. Store admin tokens (`tsat_`) and connected AI tools write as the merchant: merchant-owned definitions, and app-owned definitions whose `merchant_access` is `read_write`. The complete value change succeeds or fails together. Omitted entries are preserved.

Scope: `write_blog`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/metafields' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "metafields": [
    {
      "key": "subtitle",
      "namespace": "details",
      "value": "Launch"
    }
  ]
}'
```

Response:

```json
{
  "data": {
    "limit": 50,
    "metafields": [
      {
        "created_at": "2026-09-01T08:00:00-04:00",
        "definition": {
          "app_access": "private",
          "buyer_access": "hidden",
          "created_at": "2026-09-01T08:00:00-04:00",
          "id": "642a703a-9639-4d25-8d02-426f6f9f7d12",
          "is_filterable": false,
          "is_searchable": false,
          "is_storefront_visible": true,
          "is_translatable": true,
          "key": "subtitle",
          "merchant_access": "read_write",
          "name": "Subtitle",
          "namespace": "details",
          "owner_type": "blog_post",
          "sort_order": 0,
          "type": "string",
          "updated_at": "2026-09-01T08:00:00-04:00",
          "usage_count": 0
        },
        "updated_at": "2026-09-01T08:00:00-04:00",
        "value": "Company news"
      }
    ],
    "page": 1,
    "total": 1,
    "total_pages": 1
  },
  "success": true
}
```

## Create a blog post

`POST /api/2025-01/blog/posts`

Creates a Blog Post. `title` and `author_ref` are required; `status` defaults to `draft`. `author_ref` must identify an author in this store. `slug` is optional on create; when omitted or empty, the backend generates it from the title. Send a UUID Idempotency-Key header. Exact retries replay the original response, `content_warnings` included, for seven days without creating another post. The key is looked up before validation, so a retry still replays after a scheduled time has passed or an assigned category or tag was deleted. Reusing a key with different content returns 409. A past `publish_at` is refused only for `scheduled` status. `storefront_url` is the canonical absolute URL on the store's primary domain. `storefront_path` is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
  -H "Content-Type: application/json" \
  -d '{
  "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
  "category_ids": [
    "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a"
  ],
  "content": "\u003cp\u003eWhat changed in this release.\u003c/p\u003e",
  "excerpt": "What changed in this release.",
  "featured_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
  "publish_at": "2026-02-10T09:00:00-05:00",
  "robots": "index",
  "seo_description": "Read the latest launch notes.",
  "seo_title": "Launch notes",
  "slug": "launch-notes",
  "social_image_id": "6c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
  "status": "published",
  "tag_ids": [
    "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
  ],
  "template_handle": "default_blog",
  "title": "Launch notes"
}'
```

Response:

```json
{
  "code": "BLOG_POST_CREATED",
  "data": {
    "author": {
      "avatar_cdn_url": "https://cdn.example.com/avery.jpg",
      "avatar_media_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
      "avatar_url": "https://store.example.com/files/avery.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-01-02T06:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "post_count": 4,
      "slug": "avery-stone",
      "updated_at": "2026-02-09T11:30:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "storefront_path": "/blog-category/company-news",
        "storefront_url": "https://store.example.com/blog-category/company-news",
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "category_ids": [
      "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a"
    ],
    "comment_count": 0,
    "content": "\u003cp\u003eWhat changed in this release.\u003c/p\u003e",
    "created_at": "2026-01-05T08:00:00-04:00",
    "excerpt": "What changed in this release.",
    "featured_image_cdn_url": "https://cdn.example.com/launch.jpg",
    "featured_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "featured_image_url": "https://cdn.example.com/launch.jpg",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": "2026-02-10T09:00:00-05:00",
    "publish_at_iso": "2026-02-10T09:00:00-05:00",
    "published_at": "2026-02-10T10:00:00-04:00",
    "revision": 1,
    "robots": "index",
    "schedule_message": "",
    "schedule_state": "",
    "seo_description": "Read the latest launch notes.",
    "seo_title": "Launch notes",
    "slug": "launch-notes",
    "social_image_id": "6c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
    "status": "published",
    "status_display": "Published",
    "storefront_path": "/blog/launch-notes",
    "storefront_url": "https://store.example.com/blog/launch-notes",
    "tag_ids": [
      "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
    ],
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 8,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-02-10T10:00:00-04:00"
  },
  "message": "Post 'Launch notes' created.",
  "success": true
}
```

## Update a blog post

`PUT /api/2025-01/blog/posts/{id}`

Updates provided Blog Post fields. Supply `expected_revision` from the latest Get response; missing or stale revisions return `CONTENT_REVISION_CONFLICT` (409), also when the update changes nothing. Omitted fields are left unchanged. A blank `slug` keeps the current slug; a non-empty slug is normalized and validated. Set `create_redirect` to false to suppress the default redirect when the slug changes: no redirect is created for the old URL and redirects that pointed to it move to the new URL. The storefront still sends a visitor from a slug the post has held, in any language, to the post. A past `publish_at` is refused only when the post is or becomes `scheduled`. `storefront_url` is the canonical absolute URL on the store's primary domain. `storefront_path` is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.

Scope: `write_blog`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
  "category_ids": [
    "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a"
  ],
  "content": "\u003cp\u003eWhat changed in this release.\u003c/p\u003e",
  "create_redirect": true,
  "excerpt": "What changed in this release.",
  "expected_revision": 1,
  "featured_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
  "publish_at": "2026-02-10T09:00:00-05:00",
  "robots": "index",
  "seo_description": "Read the latest launch notes.",
  "seo_title": "Launch notes",
  "slug": "launch-notes",
  "social_image_id": "6c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
  "status": "published",
  "tag_ids": [
    "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
  ],
  "template_handle": "default_blog",
  "title": "Launch notes"
}'
```

Response:

```json
{
  "code": "BLOG_POST_UPDATED",
  "data": {
    "author": {
      "avatar_cdn_url": "https://cdn.example.com/avery.jpg",
      "avatar_media_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
      "avatar_url": "https://store.example.com/files/avery.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-01-02T06:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "post_count": 4,
      "slug": "avery-stone",
      "updated_at": "2026-02-09T11:30:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "storefront_path": "/blog-category/company-news",
        "storefront_url": "https://store.example.com/blog-category/company-news",
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "category_ids": [
      "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a"
    ],
    "comment_count": 3,
    "content": "\u003cp\u003eWhat changed in this release.\u003c/p\u003e",
    "created_at": "2026-01-05T08:00:00-04:00",
    "excerpt": "What changed in this release.",
    "featured_image_cdn_url": "https://cdn.example.com/launch.jpg",
    "featured_image_id": "8f2a1c2b-9d4e-4a56-b789-0123456789ab",
    "featured_image_url": "https://cdn.example.com/launch.jpg",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": "2026-02-10T09:00:00-05:00",
    "publish_at_iso": "2026-02-10T09:00:00-05:00",
    "published_at": "2026-02-10T10:00:00-04:00",
    "revision": 3,
    "robots": "index",
    "schedule_message": "",
    "schedule_state": "",
    "seo_description": "Read the latest launch notes.",
    "seo_title": "Launch notes",
    "slug": "launch-notes",
    "social_image_id": "6c1d2e3f-4a5b-4c6d-8e7f-90a1b2c3d4e5",
    "status": "published",
    "status_display": "Published",
    "storefront_path": "/blog/launch-notes",
    "storefront_url": "https://store.example.com/blog/launch-notes",
    "tag_ids": [
      "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
    ],
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 8,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-02-10T10:05:00-04:00"
  },
  "message": "Post 'Launch notes' updated.",
  "success": true
}
```

## Delete a blog post

`DELETE /api/2025-01/blog/posts/{id}`

Deletes a Blog Post together with its category/tag assignments, comments, and translations. Each cascaded comment emits `blog_comments/delete`. Menu references require confirmation and are removed after the confirmed delete. A post with more than 100 comments is archived at once (sending `blog_posts/update` with `changed_fields: ["status"]` unless it was already archived) and a background job removes its comments, 100 at a time, then the post: the response code is then `BLOG_POST_DELETION_QUEUED` and `data.lifecycle` holds the job (`id`, `kind`, `status`, `processed`, `total`, `message`). Custom data values on other items that point to the blog post (a blog post reference field or a list of them) are counted in the same confirmation; the confirmed delete removes the blog post from them in the same transaction: a list keeps its other items, a value that named only this blog post is removed, and each changed value sends its owner's metafield webhook (`<owner>_metafields/update` when a list keeps items, `<owner>_metafields/delete` when the value goes, for example `product_metafields/update`). Custom content entry fields that point to it lose it too. Order and order-line values keep the id: orders record the moment.

Scope: `write_blog`

```curl
curl -X DELETE 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "confirmation_token": "confirm_...",
  "confirmed": true
}'
```

Response:

```json
{
  "code": "BLOG_POST_DELETED",
  "data": {
    "title": "Launch notes"
  },
  "message": "Post 'Launch notes' deleted.",
  "success": true
}
```

## Bulk delete blog posts

`POST /api/2025-01/blog/posts/bulk-delete`

Deletes multiple Blog Posts in one request together with their assignments, comments, and translations. Each cascaded comment emits `blog_comments/delete`. Menu references require confirmation and are removed after the confirmed delete. The request is capped by the Blog Post bulk contract. When the selected posts hold more than 100 comments together, every selected post is archived at once (sending `blog_posts/update` with `changed_fields: ["status"]` for each one not already archived) and deleted by a background job, one per post: the response code is then `BLOG_POSTS_DELETION_QUEUED`, `data.deleted` is 0, `data.queued` counts the posts, and `data.lifecycle` lists the jobs. Custom data values on other items that point to any requested blog post (a blog post reference field or a list of them) are counted in the same confirmation; the confirmed delete removes the deleted blog posts from them in the same transaction: a list keeps its other items, a value that named only deleted blog posts is removed, and each changed value sends its owner's metafield webhook (`<owner>_metafields/update` when a list keeps items, `<owner>_metafields/delete` when the value goes, for example `product_metafields/update`). Custom content entry fields that point to them lose them too. Order and order-line values keep the id: orders record the moment.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-delete' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "confirmation_token": "confirm_...",
  "confirmed": true,
  "post_ids": [
    "5ff7d4ea-3250-4a4d-9d26-07f64d917d31"
  ]
}'
```

Response:

```json
{
  "code": "BLOG_POSTS_DELETED",
  "data": {
    "deleted": 1
  },
  "message": "1 post deleted.",
  "success": true
}
```

## Bulk update blog post status

`POST /api/2025-01/blog/posts/bulk-update-status`

Sets draft, published, or archived status on all supplied post ids. Posts already in that status are left unchanged (no webhook, revision or `updated_at` change) and are not counted in the message. Schedule posts individually because this endpoint does not accept a publish date.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-update-status' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "post_ids": [
    "5ff7d4ea-3250-4a4d-9d26-07f64d917d31"
  ],
  "status": "published"
}'
```

Response:

```json
{
  "code": "BLOG_POST_STATUSES_UPDATED",
  "message": "1 post updated.",
  "success": true
}
```

## Bulk assign categories

`POST /api/2025-01/blog/posts/bulk-assign-categories`

Adds the supplied categories to each post while keeping existing categories.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-assign-categories' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "category_ids": [
    "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a"
  ],
  "post_ids": [
    "5ff7d4ea-3250-4a4d-9d26-07f64d917d31"
  ]
}'
```

Response:

```json
{
  "code": "BLOG_POST_CATEGORIES_ASSIGNED",
  "data": {
    "updated": 1
  },
  "message": "Categories assigned to 1 post.",
  "success": true
}
```

## Bulk assign tags

`POST /api/2025-01/blog/posts/bulk-assign-tags`

Adds the supplied tags to each post while keeping existing tags.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-assign-tags' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "post_ids": [
    "5ff7d4ea-3250-4a4d-9d26-07f64d917d31"
  ],
  "tag_ids": [
    "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
  ]
}'
```

Response:

```json
{
  "code": "BLOG_POST_TAGS_ASSIGNED",
  "data": {
    "updated": 1
  },
  "message": "Tags assigned to 1 post.",
  "success": true
}
```

## Bulk remove categories

`POST /api/2025-01/blog/posts/bulk-remove-categories`

Removes the supplied categories from each post while keeping every other category assignment.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-remove-categories' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "category_ids": [
    "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a"
  ],
  "post_ids": [
    "5ff7d4ea-3250-4a4d-9d26-07f64d917d31"
  ]
}'
```

Response:

```json
{
  "code": "BLOG_POST_CATEGORIES_REMOVED",
  "data": {
    "updated": 1
  },
  "message": "Categories removed from 1 post.",
  "success": true
}
```

## Bulk remove tags

`POST /api/2025-01/blog/posts/bulk-remove-tags`

Removes the supplied tags from each post while keeping every other tag assignment.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-remove-tags' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "post_ids": [
    "5ff7d4ea-3250-4a4d-9d26-07f64d917d31"
  ],
  "tag_ids": [
    "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
  ]
}'
```

Response:

```json
{
  "code": "BLOG_POST_TAGS_REMOVED",
  "data": {
    "updated": 1
  },
  "message": "Tags removed from 1 post.",
  "success": true
}
```

## Change matching blog posts

`POST /api/2025-01/blog/posts/bulk-operations`

Selects every blog post matching `filter` when the request is made (at most 100000) and applies `action` to them in the background, in steps of at most `bulk_max` from the limits, each step exactly as the matching bulk endpoint does (webhooks included); a blog post the action would push past the per-post category or tag limit is reported in `failures` while the others go ahead. Actions: `delete` deletes each blog post as Bulk delete blog posts does, removing it from other items' custom data values; a step whose posts hold more than 100 comments archives them and deletes them with a background lifecycle job, one per post; `update_status` sets the status as Bulk update blog post status does; `assign_categories` adds categories, keeping the others; `remove_categories` removes categories, keeping the others; `assign_tags` adds tags, keeping the others; `remove_tags` removes tags, keeping the others. Returns HTTP 202 with the operation; poll Get blog post bulk operation until its status is no longer queued. For `delete`, if menus link to any selected blog post or other items' custom data values point to one, the first request returns `CONFIRMATION_REQUIRED` listing the menu links that will be removed and how many custom data values lose it; repeat it with `confirmed: true` and the returned token. The token covers exactly the blog posts selected at that moment: if the selection changes before you repeat, the request asks again. Blog Posts created or changed to match after the request are not included. A store runs one blog post bulk operation at a time. Reusing `operation_id` with the same `action`, `filter` and `params` returns the existing operation; a different request returns 409.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-operations' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "update_status",
  "confirmed": false,
  "filter": {
    "status": "draft",
    "tag_id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93"
  },
  "operation_id": "7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651",
  "params": {
    "status": "published"
  }
}'
```

Response:

```json
{
  "success": true,
  "code": "BLOG_POSTS_BULK_UPDATE_QUEUED",
  "message": "Updating 250 posts in the background.",
  "data": {
    "operation": {
      "id": "7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651",
      "action": "update_status",
      "status": "queued",
      "filter": {
        "status": "draft"
      },
      "params": {
        "status": "published"
      },
      "total": 250,
      "processed": 0,
      "succeeded": 0,
      "failed": 0,
      "failures": [],
      "summary": "Updating posts: 0 of 250 done.",
      "created_at": "2026-11-22T10:00:00+05:30"
    }
  }
}
```

## Get blog post bulk operation

`GET /api/2025-01/blog/posts/bulk-operations/{operationId}`

Use the operation UUID returned when queueing it, or `current` for the store's running operation (or, when none runs, its newest finished one not yet acknowledged). `status` is queued (running), completed, cancelled or failed. `processed` rises from 0 to `total` as the operation works through the blog posts it selected; `succeeded` and `failed` split it (blog posts the action leaves as they were count as succeeded). `failures` lists each blog post the action could not change with its `code` and `reason` (NOT_FOUND when it was already gone); the first 500 are kept, `failed` counts them all. `summary` is the operation's state in the caller's language. A failed operation keeps what it had already done; `error` says why it stopped. Operations remain available for 30 days after they finish. `current` returns `operation: null` when there is nothing to show.

Scope: `write_blog`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-operations/7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "code": "BLOG_POSTS_BULK_UPDATE_PARTIAL",
  "message": "249 posts updated. 1 post could not be updated.",
  "data": {
    "operation": {
      "id": "7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651",
      "action": "update_status",
      "status": "completed",
      "filter": {
        "status": "draft"
      },
      "params": {
        "status": "published"
      },
      "total": 250,
      "processed": 250,
      "succeeded": 249,
      "failed": 1,
      "failures": [
        {
          "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
          "title": "Launch notes",
          "code": "NOT_FOUND",
          "reason": "Not found"
        }
      ],
      "summary": "249 posts updated. 1 post could not be updated.",
      "created_at": "2026-11-22T10:00:00+05:30",
      "finished_at": "2026-11-22T10:00:06+05:30"
    }
  }
}
```

## Cancel blog post bulk operation

`POST /api/2025-01/blog/posts/bulk-operations/{operationId}/cancel`

Stops the operation; the step in progress is rolled back. Blog Posts already changed stay changed; the others are left as they were. Returns the operation with status cancelled.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-operations/7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651/cancel' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "code": "BLOG_POSTS_BULK_UPDATE_CANCELLED",
  "message": "Stopped. 200 posts were updated before you stopped; the others were left as they were.",
  "data": {
    "operation": {
      "id": "7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651",
      "action": "update_status",
      "status": "cancelled",
      "filter": {
        "status": "draft"
      },
      "params": {
        "status": "published"
      },
      "total": 250,
      "processed": 200,
      "succeeded": 200,
      "failed": 0,
      "failures": [],
      "summary": "Stopped. 200 posts were updated before you stopped; the others were left as they were.",
      "created_at": "2026-11-22T10:00:00+05:30",
      "finished_at": "2026-11-22T10:00:04+05:30"
    }
  }
}
```

## Acknowledge blog post bulk operation

`POST /api/2025-01/blog/posts/bulk-operations/{operationId}/acknowledge`

After presenting a finished result, acknowledge its UUID so `current` no longer returns it. It stays readable by UUID for 30 days. Repeating it is safe. A running operation cannot be acknowledged.

Scope: `write_blog`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/blog/posts/bulk-operations/7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651/acknowledge' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "success": true,
  "data": {
    "acknowledged": true
  }
}
```

## Delete blog post metafield

`DELETE /api/2025-01/blog/posts/{id}/metafields/{namespace}/{key}`

Address the existing definition by namespace and key. Requires the same write scope and ownership as setting the value. Apps can clear only their own values; merchant callers need write access to the definition's values. The value row is removed, not set to null. The deletion is recorded in the store's activity log and sends the same metafield webhooks as a delete in Store Admin. Repeating the request for an absent value succeeds with the same success envelope (no data or deleted-count field). An unknown or unreadable definition fails. No request body or confirmation token is required.

Scope: `write_blog`

```curl
curl -X DELETE 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/metafields/details/subtitle' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"code":"METAFIELD_DELETED","message":"Metafield deleted."}
```

## Fields

| Field | Type | Create | Update | Required | Translatable |
| --- | --- | --- | --- | --- | --- |
| `title` | string | Yes | Yes | create | Yes |
| `slug` | string | Yes | Yes | - | Yes |
| `content` | string | Yes | Yes | - | Yes |
| `excerpt` | string | Yes | Yes | - | Yes |
| `featured_image_id` | string | Yes | Yes | - | No |
| `author_ref` | string (UUID) | Yes | Yes | create | No |
| `author` | object | No | No | - | No |
| `seo_title` | string | Yes | Yes | - | Yes |
| `seo_description` | string | Yes | Yes | - | Yes |
| `status` | string | Yes | Yes | - | No |
| `status_display` | string | No | No | - | No |
| `publish_at` | string | Yes | Yes | - | No |
| `published_at` | string (RFC 3339) | No | No | - | No |
| `robots` | string | Yes | Yes | - | No |
| `social_image_id` | string (UUID) | Yes | Yes | - | No |
| `template_handle` | string | Yes | Yes | - | No |
| `category_ids` | array<uuid> | Yes | Yes | - | No |
| `tag_ids` | array<uuid> | Yes | Yes | - | No |
| `category_count` | integer | No | No | - | No |
| `comment_count` | integer | No | No | - | No |
| `created_at` | string (RFC 3339) | No | No | - | No |
| `updated_at` | string (RFC 3339) | No | No | - | No |
| `storefront_url` | url | No | No | No | No |
| `storefront_path` | string | No | No | No | No |

> `storefront_url` is the read-only canonical HTTPS URL on the store's primary domain. `storefront_path` is the read-only, domain-independent baseline route for clients targeting another configured storefront domain. Resources with storefront visibility conditions return both fields as `null` when those conditions are not met. Hosted storefront responses return request-addressed paths with translated slugs and locale/country prefixes.

## Webhook events

Subscribe to these events to keep your integration in sync with blog posts. Each event shows the required Store API scope and store permission, the available payload fields, and an example payload. Subscription setup is validated against those permissions; delivery is always restricted to the subscription's store.

Metafield events are filtered for every subscriber. An app receives events for definitions it owns. With the event's required scope, it also receives merchant-owned definitions and definitions shared by another app through `app_access: shared`; another app's private definitions are not delivered. A store-level webhook endpoint receives merchant-owned definitions and app-owned definitions unless `merchant_access` is `hidden`. If an event cannot identify the definition owner or its access settings, Tringify does not deliver it.

## Blog post created

Event: `blog_posts/create` · App scope: `read_blog` · Staff permission: `blog:write`

Fired when a blog post is created.

```json
{
  "blog_post": {
    "author": {
      "avatar_url": "https://assets.tringify.com/74e634ea-84ec-43b8-b66b-986214c2c5a3/upload/8f2a1c2b-9d4e-4a56-b789-0123456789ab.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-06-09T12:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "slug": "avery-stone",
      "social_image_id": null,
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "comment_count": 4,
    "content": "\u003cp\u003eWe took the Trailblazer Tee on a 30km ridge hike.\u003c/p\u003e",
    "created_at": "2026-06-09T12:00:00-04:00",
    "excerpt": "We took the Trailblazer Tee on a 30km ridge hike.",
    "featured_image_cdn_url": null,
    "featured_image_id": null,
    "featured_image_url": null,
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": null,
    "published_at": "2026-06-09T12:00:00-04:00",
    "robots": "index",
    "seo_description": "Trail notes from 30km in our organic cotton tee.",
    "seo_title": "Field-Testing the Trailblazer Tee",
    "slug": "launch-notes",
    "social_image_id": null,
    "status": "published",
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 3,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-06-09T12:00:00-04:00"
  }
}
```

## Blog post updated

Event: `blog_posts/update` · App scope: `read_blog` · Staff permission: `blog:write`

Fired when a blog post is updated. Also sent when a deleted Media file was its featured image: `changed_fields` is `featured_image_id` and the image is now empty. Also sent for every post a deleted blog tag is taken off (`changed_fields` is `tags`) and every post a deleted blog category is moved off or taken off (`changed_fields` is `categories`), including posts changed by a background deletion job.

```json
{
  "blog_post": {
    "author": {
      "avatar_url": "https://assets.tringify.com/74e634ea-84ec-43b8-b66b-986214c2c5a3/upload/8f2a1c2b-9d4e-4a56-b789-0123456789ab.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-06-09T12:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "slug": "avery-stone",
      "social_image_id": null,
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "comment_count": 4,
    "content": "\u003cp\u003eWe took the Trailblazer Tee on a 30km ridge hike.\u003c/p\u003e",
    "created_at": "2026-06-09T12:00:00-04:00",
    "excerpt": "We took the Trailblazer Tee on a 30km ridge hike.",
    "featured_image_cdn_url": null,
    "featured_image_id": null,
    "featured_image_url": null,
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": null,
    "published_at": "2026-06-09T12:00:00-04:00",
    "robots": "index",
    "seo_description": "Trail notes from 30km in our organic cotton tee.",
    "seo_title": "Field-Testing the Trailblazer Tee",
    "slug": "launch-notes",
    "social_image_id": null,
    "status": "published",
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 3,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-06-09T12:00:00-04:00"
  },
  "changed_fields": [
    "status",
    "published_at"
  ]
}
```

## Blog post deleted

Event: `blog_posts/delete` · App scope: `read_blog` · Staff permission: `blog:write`

Fired when a blog post is deleted. The same delete sends blog_posts/translations/delete for each translated language, blog_comments/delete for each of its comments, blog_post_metafields/delete for its values and redirects/delete for each redirect Tringify had created toward the post's URLs. A post with many comments is archived first (blog_posts/update) and deleted by a background job, which sends these events when it finishes. Events of different topics can arrive in any order.

```json
{
  "blog_post": {
    "author": {
      "avatar_url": "https://assets.tringify.com/74e634ea-84ec-43b8-b66b-986214c2c5a3/upload/8f2a1c2b-9d4e-4a56-b789-0123456789ab.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-06-09T12:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "slug": "avery-stone",
      "social_image_id": null,
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "comment_count": 4,
    "content": "\u003cp\u003eWe took the Trailblazer Tee on a 30km ridge hike.\u003c/p\u003e",
    "created_at": "2026-06-09T12:00:00-04:00",
    "excerpt": "We took the Trailblazer Tee on a 30km ridge hike.",
    "featured_image_cdn_url": null,
    "featured_image_id": null,
    "featured_image_url": null,
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": null,
    "published_at": "2026-06-09T12:00:00-04:00",
    "robots": "index",
    "seo_description": "Trail notes from 30km in our organic cotton tee.",
    "seo_title": "Field-Testing the Trailblazer Tee",
    "slug": "launch-notes",
    "social_image_id": null,
    "status": "published",
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 3,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-06-09T12:00:00-04:00"
  }
}
```

## Blog post metafield value created

Event: `blog_post_metafields/create` · App scope: `read_blog` · Staff permission: `blog:write`

Fired when a blog post metafield value is created.

```json
{
  "blog_post": {
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "slug": "launch-notes",
    "title": "Launch notes"
  },
  "metafield": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "definition": {
      "app_access": "private",
      "app_id": null,
      "created_at": "2026-06-09T12:00:00-04:00",
      "description": "Estimated reading time shown to shoppers.",
      "id": "f1d9af5a-4d56-49aa-a4a5-f90053d637fd",
      "is_translatable": false,
      "key": "reading_time",
      "max_list_items": null,
      "max_value_length": 40,
      "merchant_access": "read_write",
      "name": "Reading time",
      "namespace": "details",
      "owner_type": "blog_post",
      "sort_order": 0,
      "type": "string",
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "display_value": "5 minutes",
    "display_value_map": {
      "en": "5 minutes"
    },
    "updated_at": "2026-06-09T12:00:00-04:00",
    "value": "5 minutes"
  }
}
```

## Blog post metafield value updated

Event: `blog_post_metafields/update` · App scope: `read_blog` · Staff permission: `blog:write`

Fired when a blog post metafield value changes.

```json
{
  "blog_post": {
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "slug": "launch-notes",
    "title": "Launch notes"
  },
  "changed_fields": [
    "value"
  ],
  "current": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "definition": {
      "app_access": "private",
      "app_id": null,
      "created_at": "2026-06-09T12:00:00-04:00",
      "description": "Estimated reading time shown to shoppers.",
      "id": "f1d9af5a-4d56-49aa-a4a5-f90053d637fd",
      "is_translatable": false,
      "key": "reading_time",
      "max_list_items": null,
      "max_value_length": 40,
      "merchant_access": "read_write",
      "name": "Reading time",
      "namespace": "details",
      "owner_type": "blog_post",
      "sort_order": 0,
      "type": "string",
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "display_value": "5 minutes",
    "display_value_map": {
      "en": "5 minutes"
    },
    "updated_at": "2026-06-09T12:00:00-04:00",
    "value": "5 minutes"
  },
  "previous": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "definition": {
      "app_access": "private",
      "app_id": null,
      "created_at": "2026-06-09T12:00:00-04:00",
      "description": "Estimated reading time shown to shoppers.",
      "id": "f1d9af5a-4d56-49aa-a4a5-f90053d637fd",
      "is_translatable": false,
      "key": "reading_time",
      "max_list_items": null,
      "max_value_length": 40,
      "merchant_access": "read_write",
      "name": "Reading time",
      "namespace": "details",
      "owner_type": "blog_post",
      "sort_order": 0,
      "type": "string",
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "display_value": "4 minutes",
    "display_value_map": {
      "en": "4 minutes"
    },
    "updated_at": "2026-06-09T12:00:00-04:00",
    "value": "4 minutes"
  }
}
```

## Blog post metafield value deleted

Event: `blog_post_metafields/delete` · App scope: `read_blog` · Staff permission: `blog:write`

Fired when a blog post metafield value is deleted, including when its blog post is deleted.

```json
{
  "blog_post": {
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "slug": "launch-notes",
    "title": "Launch notes"
  },
  "metafield": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "definition": {
      "app_access": "private",
      "app_id": null,
      "created_at": "2026-06-09T12:00:00-04:00",
      "description": "Estimated reading time shown to shoppers.",
      "id": "f1d9af5a-4d56-49aa-a4a5-f90053d637fd",
      "is_translatable": false,
      "key": "reading_time",
      "max_list_items": null,
      "max_value_length": 40,
      "merchant_access": "read_write",
      "name": "Reading time",
      "namespace": "details",
      "owner_type": "blog_post",
      "sort_order": 0,
      "type": "string",
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "display_value": "5 minutes",
    "display_value_map": {
      "en": "5 minutes"
    },
    "updated_at": "2026-06-09T12:00:00-04:00",
    "value": "5 minutes"
  }
}
```

## Blog settings updated

Event: `blog_settings/update` · App scope: `read_blog` · Staff permission: `blog:write`

Fired when blog comment settings change.

```json
{
  "settings": {
    "comment_blocked_words": [
      "free shipping code",
      "dm me"
    ],
    "comment_starter_words": true,
    "comments_mode": "registered",
    "comments_moderation": true,
    "updated_at": "2026-06-09T12:00:00-04:00"
  }
}
```

If a scheduled publication exhausts its retries, the failure state and the merchant notification are recorded together. The post stays scheduled and shows the publication failure; choose a different publication time to start a new attempt. Changing or cancelling the schedule before the old attempt finishes prevents a failure notification for that old schedule.

A failed scheduled blog publication is reported through the post’s scheduling state and a merchant notification. It does not introduce a publication-failure webhook topic. A later successful publication uses the existing blog_posts/update event contract.

