BizKitHub
DokumentacjaEksplorator APIPost/api/v1/post/history/version
getPostPubliczne API v1

/api/v1/post/history/version

Returns one specific revision in full, including the HTML content snapshot (body is loaded from blob storage on demand). Use this when an external consumer needs to render a historical version of a post body or compute a diff against another version.

postgetApiV1PostHistoryVersion

Parametry

2 w query

Parametry query

· 2
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
idstringWymagane

Version handle returned by /api/v1/post/history.

PrzykładvErSiOnHaNdLe123

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
idstringWymagane

Version handle (echo).

postIdstringWymagane

External id of the parent post.

localestringWymagane

Locale code of this revision.

insertedDateDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
titlestringWymagane
contentstringWymagane

Full HTML content snapshot at this revision.

contentSizenumberWymagane
commitMessagestring | nullWymagane
authorobjectWymagane
idstring | nullWymagane
namestringWymagane
Wariant 2
state"error"Wymagane
messagestringWymagane
code"200"Wymagane
hintstring | nullWymagane

Przykład odpowiedzi

application/json
{
  "id": "example_id",
  "postId": "example_postId",
  "locale": "example_locale",
  "title": "example_title",
  "content": "example_content",
  "contentSize": 0,
  "author": {
    "name": "example_name"
  }
}

Przykład żądania

GET /api/v1/post/history/version

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

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API