IMMA AI Docs
API reference

Comments

Read and reply to comments on Facebook Page, Instagram and Threads posts. TikTok is not supported.

Preview

Preview: the API and MCP server are in private beta; details may change.

Comments cover Facebook Page, Instagram and Threads posts. TikTok is not supported, because TikTok's public API does not expose comments.

Required scope: inbox:write.

Endpoints

MethodPathDescription
GET/commentsList comments, filterable by account and status
POST/comments/{id}/replyReply to a comment
POST/comments/{id}/hideHide a comment

Request parameters

NameTypeRequiredDescriptionUsed by
account_idstringNoFilter to one connected accountlist
statusstringNoopen, replied or hiddenlist
textstringYesReply textreply
curl "https://api.getimma.com/v1/comments?account_id=acc_ig_...&status=open" \
  -H "Authorization: Bearer imma_live_xxxxxxxxxxxxxxxxxxxx"

curl -X POST https://api.getimma.com/v1/comments/cmt_01J.../reply \
  -H "Authorization: Bearer imma_live_xxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Harga sudah kami kirim lewat DM ya kak" }'

Response (GET /comments):

{
  "comments": [
    {
      "id": "cmt_01J...",
      "account_id": "acc_ig_...",
      "platform": "instagram",
      "target_id": "tgt_2",
      "author_handle": "@pembeli_setia",
      "text": "harga berapa kak?",
      "status": "open",
      "created_at": "2026-09-28T09:12:00+07:00"
    }
  ]
}

Reply and hide return the updated comment with status set to replied or hidden.

Errors

CodeHTTPWhen
unauthorized401Missing or invalid API key
insufficient_scope403Key lacks inbox:write
not_found404Comment does not exist, was deleted by its author, or belongs to another workspace
permission_missing-The connected account no longer has the permission needed to reply or hide

See Errors for the shared error shape.

Platform notes

Instagram, Facebook Pages and Threads only, not TikTok. TikTok comments do not appear here and cannot be replied to through this API, because TikTok's public API has no comments endpoint. Replies always go out because of an explicit reply call from your integration or a dashboard click; there is no automatic reply in this API.

On this page