PostZen
Inbox

List comments on a post

GET
/v1/inbox/comments/{postId}

Returns the comments the platform holds for one Instagram, Facebook, Threads, or TikTok post, and refreshes PostZen's stored copy of the thread as a side effect. replies carries the first page of nested replies when the platform returns them cheaply — repliesHasMore says when it did not, and passing that comment's id as commentId pages through the rest. Instagram and TikTok threads are only two levels deep, so a reply never carries replies of its own. TikTok returns replies separately: a TikTok comment with replyCount above zero has its replies listed through commentId. Fields a platform does not report are absent rather than zero: Threads, for example, never reports per-reply like counts. Attachment URLs are expiring platform CDN links, so read the comment again for a fresh one. Read-only and read-write API keys are accepted.

Authorization

bearerAuth
AuthorizationBearer <token>

PostZen API key.

In: header

Path Parameters

postId*string

Post the comments belong to. Accepts a PostZen post id — resolved to the id the post was published under for accountId — or the platform's own post/media id, which is the common case because the inbox covers every post the account has, not only the ones PostZen published. Instagram and Facebook also accept a comment id here.

Query Parameters

accountId*string

PostZen account id of the connected Instagram, Facebook, Threads, or TikTok account that owns the post.

limit?integer

Page size. Platform page ceilings may return fewer.

cursor?string

Opaque pagination cursor. Pass pagination.cursor from the previous response to fetch the next page.

commentId?string

Return the replies to this comment instead of the post's own comments.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/inbox/comments/string?accountId=string"
{  "status": "success",  "comments": [    {      "id": "17912345678901234",      "message": "Love this one!",      "createdTime": "2026-08-17T14:22:08.000Z",      "from": {        "id": "17841400000000000",        "name": "Jane Doe",        "username": "janedoe",        "isOwner": false      },      "likeCount": 3,      "replyCount": 1,      "platform": "instagram",      "url": "https://www.instagram.com/p/CxYzAbCdEfG/c/17912345678901234/",      "replies": [        {          "id": "17912345678901299",          "message": "Thank you!",          "createdTime": "2026-08-17T14:41:52.000Z",          "from": {            "id": "17841411111111111",            "username": "postzenhq",            "isOwner": true          },          "platform": "instagram",          "replies": [],          "repliesHasMore": false,          "canReply": true,          "canDelete": true,          "canHide": true,          "canLike": false,          "isHidden": false,          "parentId": "17912345678901234"        }      ],      "repliesHasMore": false,      "canReply": true,      "canDelete": true,      "canHide": true,      "canLike": false,      "isHidden": false,      "parentId": null    }  ],  "pagination": {    "hasMore": true,    "cursor": "QVFIUkxsdGx..."  },  "meta": {    "platform": "instagram",    "postId": "17895695668004550",    "accountId": "k17d8s9f0a1b2c3d4e5f6g7h8i",    "lastUpdated": "2026-08-18T09:15:00.000Z"  }}
{  "error": "The inbox supports Instagram, Facebook, Threads and TikTok accounts only.",  "code": "platformUnsupported",  "platform": "tiktok"}
{  "error": "Unauthorized"}
{  "error": "Reconnect the account to grant PostZen access to its comments.",  "code": "platformCapabilityMissing",  "platform": "facebook"}
{  "error": "That post could not be found.",  "code": "postNotFound"}
{  "error": "This connection needs to be reauthorized before its comments can be read.",  "code": "connectionDead",  "platform": "instagram"}
{  "error": "(#4) Application request limit reached",  "code": "4",  "platform": "instagram",  "platformError": "(#4) Application request limit reached"}
{  "error": "Failed to create post"}
{  "error": "Unsupported get request.",  "code": "100",  "platform": "facebook",  "platformError": "Unsupported get request."}

List commented posts GET

Returns posts with their comment counts across the connected Instagram, Facebook, Threads, and TikTok accounts the key can reach, including posts published outside PostZen. Use a post's `id` with its `accountId` on `GET /v1/inbox/comments/{postId}` to read its comments. Read-through: on a request without `cursor`, each in-scope account whose stored post list is older than 5 minutes is refreshed from the platform (its newest 50 posts), at most 10 accounts per request, stalest first and 3 at a time; the rest are answered from stored posts and refresh on a later request. Requests with `cursor` read stored posts only. A refresh failure does not fail the request: the account appears in `meta.failedAccounts` and its stored posts are still returned. Accounts that need reauthorization are reported there with code `connection_dead` and are not refreshed. TikTok covers accounts connected through the TikTok for Business app only (`connectionLane: business` on the account). Other TikTok accounts are never queried and are listed in `meta.accountsSkipped`. `commentCount` is the count the platform reported at the last refresh: Instagram `comments_count`, the Facebook post's comment summary total, and the TikTok video's `comments`. Threads lists posts without a count, so PostZen reads it separately: each refresh fetches the `replies` insight (the post's total replies) for the account's 25 newest Threads posts, and a post that has dropped out of the newest 25 keeps the last count read for it, which can be out of date. A Threads post omits `commentCount` when no count has been read for it: reposts, posts that were already older than the newest 25 when the account was first refreshed and have had no new reply since, posts Threads keeps no insights for, and every post on an account connected without the `threads_manage_insights` permission. A count that cannot be read does not fail the refresh and is not reported in `meta.failedAccounts`. A post without `commentCount` sorts after every counted post under `sortBy=comments` (`desc`) and never matches `minComments`, so treat a missing count as unknown, not zero. `likeCount` comes from the same refresh: Instagram `like_count` (omitted when the owner hid like counts), the Facebook post's Like total (Like reactions only), and the TikTok video's `likes`. Threads posts omit `likeCount`. Pagination: `sortBy=date` pages in a stable order (`createdTime`, ties broken by when PostZen first stored the post) in either `sortOrder`. `minComments` is applied to each date-sorted page after pagination, so a page can hold fewer than `limit` posts, or none, while `hasMore` is true. `sortBy=comments` pages by the stored count, ties broken by `createdTime`, and applies `minComments` before pagination; with `since`, a page stops after scanning 1,000 stored posts and can come back short while `hasMore` is true. A count that changes between page requests can move a post to another page. `hasMore` can be true on the last page, in which case the next page is empty. A cursor is valid only with the `sortBy` and `sortOrder` it was issued for. Read-only and read-write API keys are accepted.

Comment on a post or reply to a comment POST

Publishes a comment on the post, or a reply to `commentId` when one is given. Requires a read-write API key and the account's comment-management scope; without the scope the call answers `403 platformCapabilityMissing` and nothing is sent to the platform. `attachmentUrl` is Facebook only — every other platform rejects it with `400 attachmentUnsupported`. Instagram and TikTok are two levels deep, so replying to a reply is redirected to that reply's top-level parent. TikTok comments are limited to 1,200 characters. A Threads reply is created as a container and then published; when the publish is still pending after PostZen's internal retries the call returns `502 publishPending` and the reply may still appear on its own, so check the thread before retrying rather than posting twice.