comment.mention is sent when a newly published comment mentions a profile selected on the webhook endpoint.
Delivery target
The envelope’sprofile_id is the profile mentioned in the comment. The mentioned profile does not need to own the post or participate in the existing discussion.
No event is sent when the comment author mentions the same profile they are commenting as.
Data object
data contains exactly one field:
data.comment fields
Example delivery
Retrieve related resources
The mentioned comment is already available asdata.comment. Retrieve its post and the current discussion only when needed:
data.comment.parent_comment_id is not null.
Respond as the mentioned profile
profile_id and grant comments:write, comments:all, all:write, or all:all.
More-specific comment events
When the mentioned profile is also the post author or the parent-comment author, Wircle sends the applicablecomment.created or comment.reply event to that profile instead of a duplicate comment.mention event.