DocsAPI ReferencePost/bff/post/history-diff
getPostAdmin BFF

/bff/post/history-diff

Returns a structured diff between two revisions of the same post + locale. Title is word-grain (titles are short, word grain reads naturally), content is line-grain (HTML/markdown bodies — line grain keeps block edits readable). Both revisions must belong to the same post and locale; cross-post or cross-locale diffs are rejected as caller errors.

PostgetBffPostHistory-diff

Parameters

2 query

2 total
Query · 2
fromstringRequired

Older revision handle (left side of the diff).

tostringRequired

Newer revision handle (right side of the diff).

Request

GET /bff/post/history-diff

get
curl -X GET "https://api.bizkithub.com/bff/post/history-diff?from=vErSiOnHaNdLe123&to=vErSiOnHaNdLe456" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

JSON payload

{
  "from": {
    "id": "example_id",
    "title": "example_title",
    "contentSize": 0,
    "locale": "example_locale",
    "author": {
      "name": "example_name"
    }
  },
  "to": {
    "id": "example_id",
    "title": "example_title",
    "contentSize": 0,
    "locale": "example_locale",
    "author": {
      "name": "example_name"
    }
  },
  "titleDiff": [
    {
      "value": "example_value"
    }
  ],
  "contentDiff": [
    {
      "value": "example_value"
    }
  ],
  "stats": {
    "titleAdded": 0,
    "titleRemoved": 0,
    "contentAddedLines": 0,
    "contentRemovedLines": 0
  }
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key