Parameters
2 query
Query parameters
· 2fromstringRequiredOlder revision handle (left side of the diff).
vErSiOnHaNdLe123tostringRequiredNewer revision handle (right side of the diff).
vErSiOnHaNdLe456Returns 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.
2 query
fromstringRequiredOlder revision handle (left side of the diff).
vErSiOnHaNdLe123tostringRequiredNewer revision handle (right side of the diff).
vErSiOnHaNdLe4561 status code documented
fromobjectRequiredidstringRequiredVersion handle.
insertedDateDate | string | string | numberRequiredtitlestringRequiredcontentSizenumberRequiredlocalestringRequiredauthorobjectRequiredidstring | nullRequirednamestringRequiredtoobjectRequiredidstringRequiredVersion handle.
insertedDateDate | string | string | numberRequiredtitlestringRequiredcontentSizenumberRequiredlocalestringRequiredauthorobjectRequiredidstring | nullRequirednamestringRequiredtitleDiffobject[]Requiredtype"context" | "add" | "remove"Requiredcontext = unchanged region, add = present only in to, remove = present only in from.
valuestringRequiredVerbatim slice of the document. Whitespace preserved.
contentDiffobject[]Requiredtype"context" | "add" | "remove"Requiredcontext = unchanged region, add = present only in to, remove = present only in from.
valuestringRequiredVerbatim slice of the document. Whitespace preserved.
statsobjectRequiredtitleAddednumberRequiredWords added to the title.
titleRemovednumberRequiredWords removed from the title.
contentAddedLinesnumberRequiredLines added to the content.
contentRemovedLinesnumberRequiredLines removed from the content.
{
"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
}
}GET /bff/post/history-diff
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"All BizKitHub public API endpoints require authentication via API key.