Skip to main content

Comments (all platforms)

List, create, delete, and moderate comments on your posts across multiple social networks with a single, consistent API. These endpoints call each platform's native API in real-time using the connection stored for the given profile. Reddit comments currently return HTTP 503 error_code: "reddit_unavailable".

Every operation is one endpoint with a platform, never one endpoint per network — the same reason /audience, /suggestions and /post-analytics are shaped that way. A network that cannot do something yet answers 400 with error_code: "platform_not_supported" and names the ones that can.

Platform support​

Get new comments pushed to you

Instead of listing comments on a schedule, subscribe to the comment_received webhook. It is sent for Instagram, TikTok and LinkedIn Company Pages shortly after the comment is made, with Threads rolling out; Bluesky is not generally available yet.

PlatformListCreateDeleteRepliesHide / Like / PinNotes
Instagram✅✅✅✅hide / unhide; enable/disable commentsCreating a comment requires comment_id. like and pin are not supported.
Facebook✅✅✅✅hide / unhide / like / unlike / editpin returns 400. Create accepts attachment_url (image) and attachment_share_url (GIF).
YouTube✅✅✅✅hide / unhide / holdhide maps to rejected, unhide to published, hold to heldForReview. ban_author=true only with hide.
LinkedIn✅✅✅✅—Organization (company page) posts. Use the post URN as post_id. Replies: company Page posts only.
TikTok✅✅✅✅✅Needs a reconnected TikTok account (the comments capability). post_id is the video id. See below.
X✅✅✅——List uses mentions (source: "mentions"). Hide is not available.
Threads✅✅❌✅hide / unhide / approve / ignoreEveryone's replies on connections with the read-replies permission; older connections get a partial list (partial: true) until they reconnect. See below. Delete returns platform_not_supported.
Bluesky✅✅✅✅—post_id is the at:// URI. Add depth, parent_height or comment_id for the thread view (nested replies, parents, replies hidden by the author). See below.
Reddit❌❌❌——HTTP 503 reddit_unavailable.

Replies are the same listing narrowed to a parent (comment_id on List Comments); hide / like / pin are one endpoint with a verb.

  • TikTok needs a reconnected account: comment permission is granted at connect time, so only accounts reconnected from Manage Users report comments in capabilities. Older connections still publish, but every comment call returns 400 (error_code: "tiktok_reconnect_required") until reconnect. Check capabilities before showing a comment inbox. post_id is the video id (same as the upload); post_url is accepted as that id.
  • Threads post_id is the numeric Threads post id. Reading other people's replies needs Meta's read-replies permission, which new connections get automatically: on a connection that granted it, List returns every reply to the post (top-level and nested, newest first, with username, parent_id, hidden and is_owner), and comment_id returns the direct replies to that reply. Any other connection gets only the replies posted through Upload-Post (first comments and Create Comment), with partial: true and a warning. If you connected Threads before November 2026, reconnect it once to get the permission.
  • YouTube has a dedicated comments inbox too: the whole channel at once, held-for-review and likely-spam comments, editing your comments and moderating up to 50 comments per call.
  • YouTube needs the youtube.force-ssl OAuth scope. Accounts connected before that scope existed must reconnect or comment calls fail. post_id is the video ID (e.g. dQw4w9WgXcQ).
  • LinkedIn post_id / post_url is the post URN, e.g. urn:li:ugcPost:1234567890. Same URN for list, create and delete. For replies, comment_id can be the comment_urn the listing returns (urn:li:comment:(urn:li:activity:…,…), one LinkedIn call) (share and ugcPost threads are accepted too) or the bare comment_id, which is looked up among the post's first 250 comments; if it is not there the call answers 404 with error_code: "linkedin_comment_not_found", so on busy posts pass the comment_urn. Reading comments works on company Page posts only: on a personal profile's post LinkedIn refuses it (that needs r_member_social_feed, a permission LinkedIn gives to select partners). When LinkedIn refuses to read the replies (403), a personal-profile connection gets linkedin_personal_not_supported and a Page connection linkedin_page_access_denied (check that the member who connected LinkedIn is still an administrator of that Page, then reconnect); the top-level LinkedIn listing passes LinkedIn's own 403 through (LinkedIn API Error (HTTP 403): …, no error_code). A bare comment_id needs post_id as the post URN (urn:li:share:… / urn:li:ugcPost:…), otherwise 400. Each LinkedIn comment comes as LinkedIn returns it plus comment_urn, comment_id (the bare id) and author (the actor URN); LinkedIn replies carry pagination {next_cursor, has_next} and default to 10 per page without limit.
  • Instagram replies: comment_id is the numeric comment id from the listing. Each reply carries id, text, timestamp, username, user, like_count and parent_id. post_id is still required but not used to find the replies. An id Instagram does not know answers 404 comment_not_found.
  • Facebook replies: comment_id is the comment id from the listing ({post}_{comment}). post_id is still required: a comment id does not say which Page it belongs to, so the {page_id}_{post_id} form of post_id is what picks the Page whose token reads it (with a bare video id, the Page linked to the profile is used). An id Facebook does not know answers 404 comment_not_found. Without comment_id the listing returns top-level comments only (each with comment_count), so comment_id is the way to read the replies. Each reply carries id, message, from, created_time, like_count, is_hidden, can_hide, comment_count, parent, permalink_url and attachment (only id, message, from, created_time and like_count if Facebook refuses the full set).
  • Bluesky post_id is the post's at:// URI. Without depth, parent_height or comment_id the listing is the same as always, with the same fields. Send any of the three and you get the thread view instead, in one call to Bluesky's thread without pagination (limit caps the number of top-level replies); there post_id / post_url / comment_id also accept the post's link in the Bluesky app (https://bsky.app/profile/<handle>/post/<rkey>). depth (1-10, default 1) returns nested replies as deep as you ask, each in its comment's replies; parent_height (0-100) also returns the posts above post_id in parents, nearest first, which is useful when post_id is itself a reply; comment_id is the at:// URI of a reply and returns the replies to that reply. In the thread view each comment carries id (at:// URI), cid, text, timestamp, author (did, handle, display_name, avatar), like_count, reply_count, repost_count, quote_count, url, parent_id (the reply it answers, or null when it answers the post), hidden (true when the post's author hid it with Bluesky's thread controls) and replies (nested replies, only when there are any within depth), and the response adds hidden_replies, the at:// URIs of every hidden reply. Both views need the Bluesky account connected to the profile. In the thread view, a post Bluesky cannot find answers 404 bluesky_not_found and a block between the account and the author answers 403 bluesky_blocked.
  • Facebook post_id is the id returned when you published: the video id for reels and videos, {page_id}_{post_id} for photo and text posts. post_url is read into that id for these forms: facebook.com/reel/{id}, /{page}/videos/{id}, /watch/?v={id}, /photo/?fbid={id}, /{page}/photos/.../{id}, /permalink.php?story_fbid={id}&id={page_id}, /{page}/posts/{id} and facebook.com/{page_id}_{post_id}. Share links (/share/...), fb.watch short links and pfbid... permalinks can't be read, so the call returns 400 with error_code: "invalid_post_url". Use post_id for those.

Answer comments automatically

To reply to everyone who comments a keyword (for example "POST") without calling this API each time, use an AutoDM monitor with platform set to tiktok, youtube, facebook, threads or bluesky.

List Comments​

Retrieve comments on one of your posts. Returns the comments as provided by the target platform.

Add comment_id and the same call returns the replies under that comment instead of the post's top-level comments. It is not a different URL: it is the same question — show me the comments — narrowed to a parent.

Endpoint​

GET /api/uploadposts/comments

Headers​

NameValueDescription
AuthorizationApikey your-api-key-hereYour API key for authentication

Query Parameters​

NameTypeRequiredDescription
platformStringYesOne of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky. Reddit returns 503 reddit_unavailable.
userStringYesProfile username (as configured in Upload-Post).
post_idStringYes*Post identifier. YouTube = the video ID; TikTok = the video id; LinkedIn = the post URN (urn:li:ugcPost:...); Instagram = numeric media ID. Use post_id or post_url.
post_urlStringYes*Full post URL. Alternative to post_id. On TikTok, a tiktok.com/@user/video/<id> (or /photo/<id>) URL is read as that video id.
limitIntegerNoMaximum comments to return per page (1-50; outside that range 400). LinkedIn's top-level listing ignores it and returns LinkedIn's first page without pagination; LinkedIn replies (comment_id) apply it.
afterStringNoPagination cursor returned in the previous response (pagination.next_cursor). Pass it back to fetch the next page. The parameter is named after here; cursor (the media list parameter) is ignored on this endpoint and returns the first page again. On LinkedIn replies it is a number (the offset of the next page).
comment_idStringNoTikTok, Threads, YouTube, Instagram, Facebook, LinkedIn, Bluesky. Return the replies hanging off this comment instead of the post's top-level comments, with the same pagination. post_id is still required. On LinkedIn it can be the comment_urn from the listing; on Bluesky it is the reply's at:// URI or bsky.app link and switches to the thread view. Any other platform (X, Reddit, …) answers 400 platform_not_supported.
depthIntegerNoBluesky only. Thread view: how many levels of nested replies to return (1-10, default 1). Deeper replies come inside each comment's replies.
parent_heightIntegerNoBluesky only. Thread view: how many posts above post_id to return in parents (0-100, default 0).

* Provide either post_id or post_url (one is required).

Example Requests​

Instagram:

curl 'https://api.upload-post.com/api/uploadposts/comments?platform=instagram&user=my-profile&post_id=17890455123456789&limit=50' \
-H 'Authorization: Apikey your-api-key-here'

YouTube (post_id is the video ID):

curl 'https://api.upload-post.com/api/uploadposts/comments?platform=youtube&user=my-profile&post_id=dQw4w9WgXcQ' \
-H 'Authorization: Apikey your-api-key-here'

LinkedIn (post_id is the post URN):

curl 'https://api.upload-post.com/api/uploadposts/comments?platform=linkedin&user=my-profile&post_id=urn:li:ugcPost:1234567890' \
-H 'Authorization: Apikey your-api-key-here'

TikTok (post_id is the video id):

curl 'https://api.upload-post.com/api/uploadposts/comments?platform=tiktok&user=my-profile&post_id=7401234567890123456&limit=20' \
-H 'Authorization: Apikey your-api-key-here'

TikTok — the replies under one comment (add comment_id):

curl 'https://api.upload-post.com/api/uploadposts/comments?platform=tiktok&user=my-profile&post_id=7401234567890123456&comment_id=7401234567890999888&limit=20' \
-H 'Authorization: Apikey your-api-key-here'

Instagram — the replies under one comment:

curl 'https://api.upload-post.com/api/uploadposts/comments?platform=instagram&user=my-profile&post_id=17890455123456789&comment_id=17858893269123456&limit=25' \
-H 'Authorization: Apikey your-api-key-here'

Facebook — the replies under one comment:

curl 'https://api.upload-post.com/api/uploadposts/comments?platform=facebook&user=my-profile&post_id=123456789_987654321&comment_id=987654321_1122334455&limit=25' \
-H 'Authorization: Apikey your-api-key-here'

Bluesky — thread view, three levels deep (depth turns it on; post_url can then be the bsky.app link):

curl -G 'https://api.upload-post.com/api/uploadposts/comments' \
--data-urlencode 'platform=bluesky' \
--data-urlencode 'user=my-profile' \
--data-urlencode 'post_url=https://bsky.app/profile/alice.bsky.social/post/3lb2xyz' \
--data-urlencode 'depth=3' \
-H 'Authorization: Apikey your-api-key-here'

LinkedIn — the replies under one comment (pass the comment_urn from the listing):

curl -G 'https://api.upload-post.com/api/uploadposts/comments' \
--data-urlencode 'platform=linkedin' \
--data-urlencode 'user=my-profile' \
--data-urlencode 'post_id=urn:li:share:7500811262105264139' \
--data-urlencode 'comment_id=urn:li:comment:(urn:li:activity:7500811262341185536,7503818768586981376)' \
-H 'Authorization: Apikey your-api-key-here'
A comment you just wrote takes ~10 seconds to appear

TikTok indexes a new comment or reply asynchronously. Listing immediately after creating one returns a list without it — the call succeeded, the comment exists, TikTok has simply not indexed it yet. Wait about 10 seconds before re-listing, or render the comment you just created from the create response instead of re-fetching. An empty list right after a write is not a failure.

Successful Response (200 OK)​

{
"success": true,
"comments": [
{
"id": "17858893269123456",
"text": "Great post!",
"timestamp": "2025-06-15T10:30:00+0000",
"user": {
"id": "17841400123456789",
"username": "commenter_user"
}
}
],
"pagination": {
"next_cursor": "QVFIUm9TbGd...",
"has_next": true
}
}

The exact comment fields vary by platform (each network returns its own shape). Pagination fields are present when the platform supports cursor-based paging.

Bluesky thread view (depth=2; the nested reply is shortened, it has the same fields). Without depth, parent_height or comment_id the Bluesky listing keeps its usual shape, without these fields:

{
"success": true,
"comments": [
{
"id": "at://did:plc:def456.../app.bsky.feed.post/3lb9abc",
"cid": "bafyreib...",
"text": "Great thread, thanks!",
"timestamp": "2026-11-12T09:14:02.800Z",
"author": { "did": "did:plc:def456...", "handle": "bob.bsky.social", "display_name": "Bob", "avatar": null },
"like_count": 3,
"reply_count": 1,
"repost_count": 0,
"quote_count": 0,
"url": "https://bsky.app/profile/bob.bsky.social/post/3lb9abc",
"parent_id": null,
"hidden": false,
"replies": [
{
"id": "at://did:plc:abc123.../app.bsky.feed.post/3lb9ghi",
"text": "Glad it helped",
"parent_id": "at://did:plc:def456.../app.bsky.feed.post/3lb9abc",
"hidden": false,
"quote_count": 0
}
]
}
],
"hidden_replies": ["at://did:plc:xyz999.../app.bsky.feed.post/3lb9zzz"]
}

With parent_height, the response also has parents: the posts above post_id, nearest first, with the same fields as a post in Bluesky Reads.

Comment listings are cached

Successful responses are cached for 60 seconds per account and query string, so polling faster than once a minute returns the same page. Any comment write made through Upload-Post by the same account (Create, Delete, Hide / Like / Pin, and the Instagram replies) clears that cache, so the next List shows your own change at once. On X, the underlying mentions page is also kept for 120 seconds per X account and page; replies and deletes made through Upload-Post refresh it.

Error Responses​

  • 400 Bad Request — missing parameters, invalid post identifier, or an unsupported platform.
  • 400 Bad Request — error_code: "tiktok_reconnect_required": the TikTok connection cannot manage comments. The account owner must reconnect it from Manage Users.
  • 403 Forbidden — the connected account lacks the required scope (e.g. YouTube not connected with youtube.force-ssl).
  • 403 Forbidden — error_code: "linkedin_personal_not_supported" (replies, comment_id): LinkedIn refused to read the replies and the connection is a personal profile. LinkedIn only lets Upload-Post read comments on company Pages the member administers.
  • 403 Forbidden — error_code: "linkedin_page_access_denied" (replies, comment_id): the connection posts as a company Page but LinkedIn refused to read the replies. The top-level LinkedIn listing returns LinkedIn's own 403 message without an error_code. The member who connected LinkedIn may no longer be an administrator of that Page; fix the role and reconnect LinkedIn.
  • 404 Not Found — error_code: "comment_not_found": Instagram or Facebook do not know the comment_id (or this account cannot read it). A comment that exists but has no replies is a 200 with an empty comments list. On LinkedIn an unknown comment_urn also returns an empty list, because LinkedIn answers both cases the same way.
  • 403 Forbidden — error_code: "bluesky_blocked" (Bluesky thread view): there is a block between the Bluesky account and the post's author.
  • 404 Not Found — error_code: "bluesky_not_found" (Bluesky thread view): Bluesky cannot find the post (or the reply in comment_id).
  • 404 Not Found — error_code: "linkedin_comment_not_found": a bare LinkedIn comment_id that is not among the post's first 250 comments. Pass the comment_urn from the listing.
  • 400 Bad Request — error_code: "invalid_comment_id": a comment_id in the wrong format, rejected before calling the network. Instagram: digits only. Facebook: digits and _ ({post}_{comment}). LinkedIn: digits or the comment_urn (urn:li:comment:(urn:li:activity:…,…); share and ugcPost threads too).
  • 400 Bad Request — error_code: "invalid_cursor": a LinkedIn after that is not the number from next_cursor.
  • 400 Bad Request — error_code: "invalid_parameter": TikTok refused the request itself (error 40002), e.g. a post_id that is not one of the account's videos or a parent comment that was deleted. It fails the same way every time: fix the request instead of retrying.
  • 409 Conflict — the TikTok token expired and the account must be reconnected ("reauth_required": true).
  • 500 Internal Server Error

Create Comment​

Post a comment or a reply. Provide exactly one of comment_id, post_id, or post_url to identify the target:

  • comment_id → reply to that comment.
  • post_id / post_url → top-level comment on that post.

Instagram only supports replies — you must send comment_id. It cannot create a top-level comment via the API.

On TikTok, post_id (the video id) is always required, for a top-level comment and for a reply. Adding comment_id turns the call into a reply. You can only comment on your own videos.

On X, a reply is a new post, so two rules apply:

  • Links follow the upload policy. URLs are removed from message unless the X Links add-on is active and within its monthly quota (a reply that keeps links uses one link-post of the quota). When links are removed, the response carries a warnings array. A message made only of links answers 400 with error_code: "x_links_not_allowed" and nothing is posted.
  • Daily cap per X account. Replies, edits and reposts on X share one counter per X account and UTC day: 20 on the Free plan, 200 on paid plans. Over the cap the call answers 429 with error_code: "x_daily_write_limit", limit, retry_after and a Retry-After header (seconds until 00:00 UTC). A write that X refuses is not counted. Uploads have their own daily caps and are never refused because of replies.

Endpoint​

POST /api/uploadposts/comments/create

Headers​

NameValueDescription
AuthorizationApikey your-api-key-hereYour API key for authentication
Content-Typeapplication/jsonRequest body format

Body Parameters (JSON)​

NameTypeRequiredDescription
platformStringYesOne of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky. Reddit returns 503 reddit_unavailable.
userStringYesProfile username (as configured in Upload-Post).
messageStringYesThe comment text.
comment_idStringYes*Reply to this comment. Required for Instagram.
post_idStringYes*Top-level comment on this post. LinkedIn = the post URN (urn:li:ugcPost:...); YouTube = the video ID; TikTok = the video id, required even when replying.
post_urlStringYes*Top-level comment on this post (by URL). Alternative to post_id.
target_linkedin_page_idStringNoLinkedIn. Who the comment is made as: personal for the member's own profile, or the numeric id of a company Page the member administers. Without it the comment is made as whoever published the post (the member on a personal post, the Page on a Page post). A Page pinned to the profile wins over a page id sent here, but not over personal.
attachment_urlStringNoFacebook: image attached to the comment.
attachment_share_urlStringNoFacebook: GIF attached to the comment.

* Provide exactly one of comment_id, post_id, or post_url — except on TikTok, where post_id is always required and comment_id is added to it to reply.

Example Requests​

Reply to a comment (Instagram):

curl -X POST https://api.upload-post.com/api/uploadposts/comments/create \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "instagram",
"user": "my-profile",
"comment_id": "17858893269123456",
"message": "Thanks for your comment!"
}'

Reply to a TikTok comment (post_id AND comment_id):

curl -X POST https://api.upload-post.com/api/uploadposts/comments/create \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "tiktok",
"user": "my-profile",
"post_id": "7401234567890123456",
"comment_id": "7401234567890999888",
"message": "Thanks! The full guide is in the bio."
}'

Top-level comment on a LinkedIn post (post_id is the URN):

curl -X POST https://api.upload-post.com/api/uploadposts/comments/create \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "linkedin",
"user": "my-profile",
"post_id": "urn:li:ugcPost:1234567890",
"message": "Great update!"
}'

Successful Response (200 OK)​

{
"success": true,
"id": "17858893269654321",
"message": "Comment created successfully"
}

On TikTok the answer names the platform and returns TikTok's own result object:

{
"success": true,
"platform": "tiktok",
"result": { "comment_id": "7401234567890777111" }
}

Error Responses​

  • 400 Bad Request — missing fields, more than one target provided, Instagram without comment_id, TikTok without post_id, or an unsupported platform.
  • 400 Bad Request — error_code: "tiktok_reconnect_required": the TikTok connection cannot manage comments; reconnect the account.
  • 400 Bad Request — error_code: "invalid_parameter": TikTok refused the request itself (error 40002), e.g. replying to a comment that was deleted.
  • 400 Bad Request — error_code: "x_links_not_allowed": X only. The reply contained only links and the account has no active X Links add-on quota.
  • 403 Forbidden — the connected account lacks the required scope.
  • 409 Conflict — the TikTok token expired ("reauth_required": true).
  • 429 Too Many Requests — error_code: "x_daily_write_limit": X only. The X account reached its daily cap of replies, edits and reposts. Wait Retry-After seconds.
  • 500 Internal Server Error

Delete Comment​

Delete a comment you own (or that is on your post). Accepts DELETE or POST.

Endpoint​

DELETE /api/uploadposts/comments/delete

This endpoint also accepts POST with the same body, for clients that cannot send a body with DELETE.

Headers​

NameValueDescription
AuthorizationApikey your-api-key-hereYour API key for authentication
Content-Typeapplication/jsonRequest body format

Body Parameters (JSON)​

NameTypeRequiredDescription
platformStringYesOne of instagram, facebook, youtube, linkedin, tiktok.
userStringYesProfile username (as configured in Upload-Post).
comment_idStringYesThe ID of the comment to delete.
post_idStringYes*Required for LinkedIn only — the post URN (urn:li:ugcPost:...) the comment belongs to.

* post_id is required for LinkedIn; ignored for the other platforms. TikTok deletes a comment from its comment_id alone — and only a comment written by the connected account itself.

Example Requests​

Delete a Facebook comment:

curl -X DELETE https://api.upload-post.com/api/uploadposts/comments/delete \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "facebook",
"user": "my-profile",
"comment_id": "17858893269123456"
}'

Delete a LinkedIn comment (post_id required):

curl -X DELETE https://api.upload-post.com/api/uploadposts/comments/delete \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "linkedin",
"user": "my-profile",
"comment_id": "urn:li:comment:(urn:li:ugcPost:1234567890,9876543210)",
"post_id": "urn:li:ugcPost:1234567890"
}'

Successful Response (200 OK)​

{
"success": true,
"message": "Comment deleted successfully"
}

Error Responses​

  • 400 Bad Request — missing fields, LinkedIn without post_id, or an unsupported platform.
  • 400 Bad Request — error_code: "tiktok_reconnect_required": the TikTok connection cannot manage comments; reconnect the account.
  • 403 Forbidden — the connected account lacks the required scope, or you do not own the comment.
  • 409 Conflict — the TikTok token expired ("reauth_required": true).
  • 500 Internal Server Error

Hide, Like or Pin a Comment​

Moderate a comment on one of your own posts. One endpoint, because every action here is a verb that carries its own inverse: hide / unhide, like / unlike, pin / unpin. You send the verb you want, never a boolean, so replaying a request can never flip a comment back to where it started.

Endpoint​

POST /api/uploadposts/comments/action

Headers​

NameValueDescription
AuthorizationApikey your-api-key-hereYour API key for authentication
Content-Typeapplication/jsonRequest body format

Body Parameters (JSON)​

NameTypeRequiredDescription
platformStringYestiktok, facebook, instagram, youtube, threads, bluesky. Others answer 400 platform_not_supported.
userStringYesProfile username (as configured in Upload-Post).
comment_idStringConditionalThe comment to act on. Required except Instagram enable_comments / disable_comments.
actionStringYesTikTok: hide, unhide, like, unlike, pin, unpin. Facebook: hide, unhide, like, unlike, edit (needs message); pin is 400. Instagram: hide, unhide (comment_id); enable_comments, disable_comments (post_id). YouTube: hide, unhide, hold (ban_author=true only with hide). Threads: hide, unhide, approve, ignore. Bluesky: hide, unhide (replies in the account's own threads), like, unlike (details).
post_idStringConditionalRequired for TikTok hide / unhide / pin / unpin, Instagram comment-enable/disable, and YouTube moderation.
messageStringConditionalRequired for Facebook action=edit.
ban_authorBooleanNoYouTube: only with action=hide.

Example Requests​

Hide a comment:

curl -X POST https://api.upload-post.com/api/uploadposts/comments/action \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "tiktok",
"user": "my-profile",
"comment_id": "7401234567890999888",
"action": "hide",
"post_id": "7401234567890123456"
}'

Like a comment (no post_id):

curl -X POST https://api.upload-post.com/api/uploadposts/comments/action \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "tiktok",
"user": "my-profile",
"comment_id": "7401234567890999888",
"action": "like"
}'

Pin a comment to the top of the post:

curl -X POST https://api.upload-post.com/api/uploadposts/comments/action \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "tiktok",
"user": "my-profile",
"comment_id": "7401234567890777111",
"action": "pin",
"post_id": "7401234567890123456"
}'

To undo any of them, send the inverse verb with the same body: unhide, unlike, unpin.

Successful Response (200 OK)​

{
"success": true,
"platform": "tiktok",
"action": "hide",
"comment_id": "7401234567890999888"
}

The echoed action is the confirmation to branch on.

Error Responses​

  • 400 Bad Request — a platform that cannot moderate comments yet:
{
"success": false,
"error": "'instagram' cannot act on comments yet. Supported: tiktok.",
"error_code": "platform_not_supported"
}
  • 400 Bad Request — an action outside the six verbs:
{ "success": false, "error": "action must be one of: hide, like, pin, unhide, unlike, unpin" }
  • 400 Bad Request — post_id omitted on hide / unhide / pin / unpin:
{ "success": false, "error": "post_id is required to pin a comment" }
  • 400 Bad Request — error_code: "tiktok_reconnect_required": the TikTok connection cannot manage comments; reconnect the account.
  • 400 Bad Request — error_code: "invalid_parameter": TikTok refused the request itself (error 40002): a comment that was deleted, a post_id that is not one of the account's videos, or pin on a reply. Retrying the same call fails the same way.
  • 404 Not Found — profile not found.
  • 409 Conflict — the TikTok token expired ("reauth_required": true).
  • 502 Bad Gateway — the platform failed the operation; its message comes back in error.

Additional Notes​

  • Only comments on your own posts can be moderated. Anything else is refused upstream; TikTok's error 40002 comes back as a 400 with error_code: "invalid_parameter" carrying the platform's message.
  • Pinning is exclusive: pinning a second comment moves the pin, it does not add one.
  • A comment you hide stays visible to whoever wrote it — that is TikTok's own behaviour, not something this API changes.