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
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.
| Platform | List | Create | Delete | Replies | Hide / Like / Pin | Notes |
|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | hide / unhide; enable/disable comments | Creating a comment requires comment_id. like and pin are not supported. | |
| ✅ | ✅ | ✅ | ✅ | hide / unhide / like / unlike / edit | pin returns 400. Create accepts attachment_url (image) and attachment_share_url (GIF). | |
| YouTube | ✅ | ✅ | ✅ | ✅ | hide / unhide / hold | hide maps to rejected, unhide to published, hold to heldForReview. ban_author=true only with hide. |
| ✅ | ✅ | ✅ | ✅ | — | 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 / ignore | Everyone'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. |
| ❌ | ❌ | ❌ | — | — | 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
commentsincapabilities. Older connections still publish, but every comment call returns400(error_code: "tiktok_reconnect_required") until reconnect. Checkcapabilitiesbefore showing a comment inbox.post_idis the video id (same as the upload);post_urlis accepted as that id. - Threads
post_idis 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, withusername,parent_id,hiddenandis_owner), andcomment_idreturns the direct replies to that reply. Any other connection gets only the replies posted through Upload-Post (first comments and Create Comment), withpartial: trueand awarning. 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-sslOAuth scope. Accounts connected before that scope existed must reconnect or comment calls fail.post_idis the video ID (e.g.dQw4w9WgXcQ). - LinkedIn
post_id/post_urlis the post URN, e.g.urn:li:ugcPost:1234567890. Same URN for list, create and delete. For replies,comment_idcan be thecomment_urnthe listing returns (urn:li:comment:(urn:li:activity:…,…), one LinkedIn call) (shareandugcPostthreads are accepted too) or the barecomment_id, which is looked up among the post's first 250 comments; if it is not there the call answers404witherror_code: "linkedin_comment_not_found", so on busy posts pass thecomment_urn. Reading comments works on company Page posts only: on a personal profile's post LinkedIn refuses it (that needsr_member_social_feed, a permission LinkedIn gives to select partners). When LinkedIn refuses to read the replies (403), a personal-profile connection getslinkedin_personal_not_supportedand a Page connectionlinkedin_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 own403through (LinkedIn API Error (HTTP 403): …, noerror_code). A barecomment_idneedspost_idas the post URN (urn:li:share:…/urn:li:ugcPost:…), otherwise400. Each LinkedIn comment comes as LinkedIn returns it pluscomment_urn,comment_id(the bare id) andauthor(the actor URN); LinkedIn replies carrypagination{next_cursor, has_next}and default to 10 per page withoutlimit. - Instagram replies:
comment_idis the numeric comment id from the listing. Each reply carriesid,text,timestamp,username,user,like_countandparent_id.post_idis still required but not used to find the replies. An id Instagram does not know answers404comment_not_found. - Facebook replies:
comment_idis the comment id from the listing ({post}_{comment}).post_idis still required: a comment id does not say which Page it belongs to, so the{page_id}_{post_id}form ofpost_idis 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 answers404comment_not_found. Withoutcomment_idthe listing returns top-level comments only (each withcomment_count), socomment_idis the way to read the replies. Each reply carriesid,message,from,created_time,like_count,is_hidden,can_hide,comment_count,parent,permalink_urlandattachment(onlyid,message,from,created_timeandlike_countif Facebook refuses the full set). - Bluesky
post_idis the post'sat://URI. Withoutdepth,parent_heightorcomment_idthe 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 (limitcaps the number of top-level replies); therepost_id/post_url/comment_idalso 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'sreplies;parent_height(0-100) also returns the posts abovepost_idinparents, nearest first, which is useful whenpost_idis itself a reply;comment_idis theat://URI of a reply and returns the replies to that reply. In the thread view each comment carriesid(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, ornullwhen it answers the post),hidden(truewhen the post's author hid it with Bluesky's thread controls) andreplies(nested replies, only when there are any withindepth), and the response addshidden_replies, theat://URIs of every hidden reply. Both views need the Bluesky account connected to the profile. In the thread view, a post Bluesky cannot find answers404bluesky_not_foundand a block between the account and the author answers403bluesky_blocked. - Facebook
post_idis the id returned when you published: the video id for reels and videos,{page_id}_{post_id}for photo and text posts.post_urlis 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}andfacebook.com/{page_id}_{post_id}. Share links (/share/...),fb.watchshort links andpfbid...permalinks can't be read, so the call returns400witherror_code: "invalid_post_url". Usepost_idfor those.
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
| Name | Value | Description |
|---|---|---|
| Authorization | Apikey your-api-key-here | Your API key for authentication |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
platform | String | Yes | One of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky. Reddit returns 503 reddit_unavailable. |
user | String | Yes | Profile username (as configured in Upload-Post). |
post_id | String | Yes* | 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_url | String | Yes* | 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. |
limit | Integer | No | Maximum 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. |
after | String | No | Pagination 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_id | String | No | TikTok, 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. |
depth | Integer | No | Bluesky only. Thread view: how many levels of nested replies to return (1-10, default 1). Deeper replies come inside each comment's replies. |
parent_height | Integer | No | Bluesky 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'
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.
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 own403message without anerror_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 thecomment_id(or this account cannot read it). A comment that exists but has no replies is a200with an emptycommentslist. On LinkedIn an unknowncomment_urnalso 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 incomment_id). - 404 Not Found —
error_code: "linkedin_comment_not_found": a bare LinkedIncomment_idthat is not among the post's first 250 comments. Pass thecomment_urnfrom the listing. - 400 Bad Request —
error_code: "invalid_comment_id": acomment_idin the wrong format, rejected before calling the network. Instagram: digits only. Facebook: digits and_({post}_{comment}). LinkedIn: digits or thecomment_urn(urn:li:comment:(urn:li:activity:…,…);shareandugcPostthreads too). - 400 Bad Request —
error_code: "invalid_cursor": a LinkedInafterthat is not the number fromnext_cursor. - 400 Bad Request —
error_code: "invalid_parameter": TikTok refused the request itself (error 40002), e.g. apost_idthat 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
messageunless 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 awarningsarray. Amessagemade only of links answers400witherror_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
429witherror_code: "x_daily_write_limit",limit,retry_afterand aRetry-Afterheader (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
| Name | Value | Description |
|---|---|---|
| Authorization | Apikey your-api-key-here | Your API key for authentication |
| Content-Type | application/json | Request body format |
Body Parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
platform | String | Yes | One of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky. Reddit returns 503 reddit_unavailable. |
user | String | Yes | Profile username (as configured in Upload-Post). |
message | String | Yes | The comment text. |
comment_id | String | Yes* | Reply to this comment. Required for Instagram. |
post_id | String | Yes* | 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_url | String | Yes* | Top-level comment on this post (by URL). Alternative to post_id. |
target_linkedin_page_id | String | No | LinkedIn. 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_url | String | No | Facebook: image attached to the comment. |
attachment_share_url | String | No | Facebook: 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 withoutpost_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. WaitRetry-Afterseconds. - 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
POSTwith the same body, for clients that cannot send a body withDELETE.
Headers
| Name | Value | Description |
|---|---|---|
| Authorization | Apikey your-api-key-here | Your API key for authentication |
| Content-Type | application/json | Request body format |
Body Parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
platform | String | Yes | One of instagram, facebook, youtube, linkedin, tiktok. |
user | String | Yes | Profile username (as configured in Upload-Post). |
comment_id | String | Yes | The ID of the comment to delete. |
post_id | String | Yes* | 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
| Name | Value | Description |
|---|---|---|
| Authorization | Apikey your-api-key-here | Your API key for authentication |
| Content-Type | application/json | Request body format |
Body Parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
platform | String | Yes | tiktok, facebook, instagram, youtube, threads, bluesky. Others answer 400 platform_not_supported. |
user | String | Yes | Profile username (as configured in Upload-Post). |
comment_id | String | Conditional | The comment to act on. Required except Instagram enable_comments / disable_comments. |
action | String | Yes | TikTok: 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_id | String | Conditional | Required for TikTok hide / unhide / pin / unpin, Instagram comment-enable/disable, and YouTube moderation. |
message | String | Conditional | Required for Facebook action=edit. |
ban_author | Boolean | No | YouTube: 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
actionoutside the six verbs:
{ "success": false, "error": "action must be one of: hide, like, pin, unhide, unlike, unpin" }
- 400 Bad Request —
post_idomitted onhide/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, apost_idthat is not one of the account's videos, orpinon 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
400witherror_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.
Related
- Account capabilities — check
commentsbefore offering a TikTok inbox. - Instagram private & public replies — Instagram-specific private-reply DMs and public replies.
- Direct Messages — send DMs to a commenter using their user ID.