Webhooks & APIOutbound

comment.created

Emitted when someone comments on one of your Instagram posts

type: comment.created

Fired when a comment arrives on one of your connected Instagram posts - 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

  • A visitor comments on a post Wexio has ingested.
  • A visitor replies to an existing comment on that post.

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 and does not open a conversation on its own.

On this page