BizKitHub
DokumentacjaEksplorator APIPost/api/v1/post/comment/list
getPostPubliczne API v1

/api/v1/post/comment/list

Returns a flat list of comments for a post (no nested structure). Frontend can build parent/child UI using parentId.

postgetApiV1PostCommentList

Parametry

4 w query

Parametry query

· 4
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
postIdstringWymagane

Post public id (content__post.external_id).

Przykład6IU2SWgP76FO2UXw
identityIdstringOpcjonalne

Logged user identity (from your frontend cookies). Learn more

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
includeDeletedbooleanOpcjonalne

Internal only. If true, includes deleted comments (deletedDate not null).

Domyślnie: false
Przykładfalse

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane

Comment external ID (content__post_comment.external_id), 16-char string.

PrzykładAbc1dEf2gHiJ3kL4
parentIdstring | nullWymagane

Comment external ID (content__post_comment.external_id), 16-char string.

PrzykładAbc1dEf2gHiJ3kL4
contentstringWymagane
insertedDateDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
deletedDateDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
authorobjectWymagane
namestringWymagane
profileSlugstringWymagane
usingSubscriptionServicebooleanOpcjonalne

True if the author is using a subscription service (has active subscription).

isMinebooleanOpcjonalne

True if identityId belongs to the comment author.

Wariant 2
state"error"Wymagane
messagestringWymagane
code"200"Wymagane
hintstring | nullWymagane

Przykład odpowiedzi

application/json
{
  "items": [
    {
      "id": "Abc1dEf2gHiJ3kL4",
      "content": "example_content",
      "author": {
        "name": "example_name",
        "profileSlug": "example_profileSlug"
      },
      "usingSubscriptionService": false,
      "isMine": false
    }
  ]
}

Przykład żądania

GET /api/v1/post/comment/list

get
curl -X GET "https://api.bizkithub.com/api/v1/post/comment/list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&postId=6IU2SWgP76FO2UXw&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&includeDeleted=false" \
  -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