Webhooks and APIOutbound

comment.created

Emitted when someone comments on one of your Instagram posts

type: comment.created

Fired when a new comment arrives on a post of your connected Instagram account - a top-level comment or a reply to an existing one.

Comments are the social side of Wexio, separate from direct messages. They arrive through an Instagram integration that ingests your posts and their comments.

When it fires

  • Someone comments on a post of your connected Instagram account.
  • Someone replies to an existing comment on that post.
  • Your own account replies. These arrive the same way as comments from visitors.

It fires once per new comment. Instagram sending the same comment again does not fire it twice. If the post is new to Wexio, post.created fires first.

data shape

type Data = { comment: CommentPayload };

See CommentPayload.

The payload is deliberately flat: it carries postId and commenterId as ids, not expanded objects. Resolve the post or the commenter yourself if you need them.

Example envelope

{
  "id": "evt_01JV4QJN198E4J7PN3A2V5D8HT",
  "type": "comment.created",
  "timestamp": "2026-04-24T14:05:00.000Z",
  "data": {
    "comment": {
      "id": "6805a1c2a6f9f35f6e66f2d1",
      "postId": "6805a0f1a6f9f35f6e66f2c0",
      "commenterId": "6805a1b0a6f9f35f6e66f2cc",
      "externalCommentId": "17912345678901234",
      "text": "do you deliver to the north side?",
      "hidden": false,
      "deleted": false,
      "createdAt": "2026-04-24T14:05:00.000Z"
    }
  },
  "meta": {
    "eventId": "evt_01JV4QJN198E4J7PN3A2V5D8HT",
    "event": "comment.created",
    "occurredAt": "2026-04-24T14:05:00.000Z",
    "organisationId": "6640f3d5c8a0d7e8b7f20222",
    "connectionId": "6640f45ac8a0d7e8b7f2014a",
    "apiVersion": "2026-04-01",
    "attempt": 1
  }
}

Notes

  • rootCommentId is present on replies and absent on top-level comments - use it to thread.
  • externalCommentId is Instagram's own comment id, for correlating with data you pull from Meta directly.
  • A comment is not a message. It produces no message.* event.
  • hidden and deleted are false on a new comment. Later changes arrive as comment.updated and comment.deleted.

Was this page helpful?

On this page