---
title: "Hide, like or pin a comment (multi-platform)"
method: POST
path: "/uploadposts/comments/action"
tags: ["Instagram Interactions"]
---

# Hide, like or pin a comment (multi-platform)

`POST /uploadposts/comments/action`

Moderate a comment on one of your own posts. One endpoint, because every action is a verb that carries its own inverse: hide/unhide, like/unlike, pin/unpin. You send the verb, never a boolean, so replaying a request can never flip a comment back. Only `tiktok` acts on comments today; any other platform answers 400 with error_code `platform_not_supported`. TikTok requires the `comments` capability (a reconnected account).

## Request body

- object
  - `platform` 'tiktok', required — The network to act on. Only tiktok today.
  - `user` string, required — Profile username as configured in Upload-Post.
  - `comment_id` string, required — The comment to act on.
  - `action` 'hide' | 'unhide' | 'like' | 'unlike' | 'pin' | 'unpin', required — The verb to apply. Send the inverse verb to undo it.
  - `post_id` string — The post the comment hangs from. Required for hide, unhide, pin and unpin; do not send it for like/unlike, which resolve from the comment alone.

## Response `200`

Action applied.

- object
  - `success` boolean
  - `platform` string
  - `action` string
  - `comment_id` string

## Other responses

- `400` — That network cannot answer this question yet. Upload-Post is one endpoint per QUESTION with a `platform`, so the message names the platforms that can. Branch on the error_code, not on a hard-coded platform list: when the network is added, the same call starts returning data. Some endpoints carry the text in `error` instead of `message`.
- `401` — Unauthorized — Invalid or expired token.
- `404` — Not Found — Resource does not exist.
- `409` — The TikTok token expired and could not be refreshed; the account must be reconnected.
- `502` — TikTok rejected the request. Its message is returned verbatim.

## Changes

- **2026-08-31** `f3ef68b64fbc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/upload-post/apis/upload-post-api/changes/uploadposts/comments/action/post.md)

---

[API](https://skmtc.dev/upload-post/apis/upload-post-api.md) · [All operations](https://skmtc.dev/upload-post/apis/upload-post-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/upload-post/upload-post-api/revisions/f3ef68b64fbc/schema)
