BizKitHub
DokumentationAPI-ExplorerPost/api/v1/post/history
getPostÖffentliche API v1

/api/v1/post/history

Returns the commit log for a post: every revision recorded in content__post_history, newest first.

A post with multi-locale content (e.g. cs + en + de) has independent revision streams per language. Pass locale=cs to scope to one language, omit to get all languages mixed; either way each item exposes its own locale field.

Designed so external consumers (e.g. ChatSPC) can present a version timeline without operating their own database. Each entry carries the version handle, timestamp, locale, snapshot title, optional commit message and the byte size of the stored content blob. The HTML body itself is fetched on demand via /api/v1/post/history/version.

postgetApiV1PostHistory

Parameter

3 in der Query

Query-Parameter

· 3
apiKeystringPflicht

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

BeispielPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
idstringPflicht

Post public id (content__post.external_id).

Beispiel6IU2SWgP76FO2UXw
localestringOptional

Communication locale code — controls the language of textual data (product names, descriptions, articles, storefront UI, transactional e-mails).

Preferred format: BCP 47 language tag — language[-Script][-REGION]. Use the full tag whenever the script or region matters:

  • en-GB vs. en-US (British vs. American spelling)
  • pt-PT vs. pt-BR (European vs. Brazilian Portuguese)
  • zh-Hans vs. zh-Hant (Simplified vs. Traditional Chinese)
  • sr-Latn vs. sr-Cyrl (Latin vs. Cyrillic Serbian)

Backwards-compatible fallback: the bare two-letter ISO 639-1 code (cs, en, pl, …) is accepted indefinitely — legacy clients that only send the language subtag continue to work unchanged.

Resolution algorithm (server-side): the input is resolved against the supported locale list via the [RFC 4647 Lookup] progressive-fallback strategy — trailing subtags are stripped one by one until a supported locale is found. Example: en-GB-oxendict → en-GB → en (matched). If no subtag combination is supported, the request is rejected.

Currently supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da, hu, ro, nl, pt, fi, nb, hr. Region-specific variants (e.g. en-GB, pt-BR) are accepted and resolved to their base language when the exact variant is not registered separately.

Länge: 2–35
Beispielcs

Antwortschema

1 dokumentierter Statuscode

200Erfolg
object | object
Eine von 2 Varianten:
Variante 1
postIdstringPflicht

Echo of the post external id.

localestring | nullPflicht

Echo of the locale filter, or null when none was applied.

itemsobject[]Pflicht
Jedes Array-Element:
idstringPflicht

Version handle (16 chars). Pass to /history/version to read the body.

BeispielvErSiOnHaNdLe123
insertedDateDate | string | string | numberPflicht
Eine von 4 Varianten:
Variante 1
Date
Variante 2
stringdate-time
Variante 3
stringdate
Variante 4
number
localestringPflicht

Locale code of this revision (e.g. "cs", "en").

titlestringPflicht

Snapshot of the post title at this revision.

commitMessagestring | nullPflicht

Optional human commit message; null for auto-versions.

contentSizenumberPflicht

Byte size of the content blob.

authorobjectPflicht
idstring | nullPflicht

cuRefNo of the author contact.

namestringPflicht

Display name of the author.

Variante 2
state"error"Pflicht
messagestringPflicht
code"200"Pflicht
hintstring | nullPflicht

Antwortbeispiel

application/json
{
  "postId": "example_postId",
  "items": [
    {
      "id": "vErSiOnHaNdLe123",
      "locale": "example_locale",
      "title": "example_title",
      "contentSize": 0,
      "author": {
        "name": "example_name"
      }
    }
  ]
}

Anfragebeispiel

GET /api/v1/post/history

get
curl -X GET "https://api.bizkithub.com/api/v1/post/history?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&id=6IU2SWgP76FO2UXw&locale=cs" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Sie brauchen einen API-Schlüssel?

Alle öffentlichen Endpunkte der BizKitHub-API authentifizieren per API-Schlüssel.

API-Schlüssel erhalten