POST/social-inbox/items/{id}/state
Moderates a comment on the platform: hide, unhide, or delete.
pf-api-keyRate limit: 200 requests per hourDELETE cannot be undone
DELETE removes the comment on the platform itself, not just from the Social Inbox. There is no way to restore it afterwards, so confirm the action in your own UI before calling this route.
If you only want the comment out of public view, use HIDE: it is reversible with UNHIDE.
Platform support
HIDE and UNHIDE work on TikTok, Instagram, Facebook Pages, and Threads.
DELETE is unavailable on Threads and returns inbox.deleteNotSupported there.
Moderation performed directly on the platform syncs back into the item's state, so the two views stay in step.
Path parameters
idstring (UUID)requiredThe comment item id, from /social-inbox/conversations/{id}/items. This is the item id, not the conversation id.
Request body
actionstringrequiredWhat to do with the comment. An unrecognized value returns inbox.unsupportedAction.
HIDEUNHIDEDELETEResponse
201 Created The updated item, with state reflecting the new moderation state.
idstring (UUID)requiredItem id. This is the value the reply, private-reply, and state routes take as their path parameter.
conversationIdstring (UUID)requiredConversation the item belongs to.
kindstringrequiredItem type. Always COMMENT today.
directionstringrequiredINBOUND for a comment you received, OUTBOUND for a reply you sent.
INBOUNDOUTBOUNDexternalItemIdstring | nulloptionalThe platform's comment id. null on an outbound reply that is still sending.
parentExternalItemIdstring | nulloptionalPlatform id of the parent comment, for threading.
authorUsernamestring | nulloptionalAuthor's username, when the platform exposes it.
textstring | nulloptionalComment or reply body.
statestringrequiredModeration state on the platform, changed via the state route.
VISIBLEHIDDENDELETEDdeliveryStatusstring | nulloptionalOutbound items only: how far the send got. null on inbound comments.
PENDINGSENTFAILEDauthoredByUserIdstring (UUID) | nulloptionalWorkspace member who sent an outbound item. null for replies sent with an API key, because keys are workspace-scoped rather than user-scoped.
platformCreatedAtISO 8601requiredWhen the platform recorded the comment.
createdAtISO 8601requiredWhen PostFast stored the item.
canPrivateReplyboolean | nulloptionalInstagram inbound comments: whether this comment is still eligible for /social-inbox/items/{id}/private-reply. null elsewhere.