In Tribe, all posts and replies are considered as a
Post. In most cases, you want to listen to
post.published event is called when a post or reply is published.
reply.added happens only when a reply is published.
When a post or reply is deleted
post.deleted event is called.
reply.removed is triggered only when a reply is deleted.
In some cases, posts are not published right away and are sent for moderation. In the next section, you can learn more about the full lifecycle of publishing a post.
When a post is created, no matter if it's a post or a reply, it's sent for moderation or not, it will result in
post.created event. In case the post is not sent to moderation, it will also result in
post.published event right away.
If the post is sent for moderation, it will result in
moderation.created events. Community admins or moderators can either approve or reject the post from the moderation panel:
Approving the post will result in
moderation.rejected(since the "sent to moderation" decision was wrong) events.
Rejecting the post will result in
moderation.accepted(since the "sent to moderation" decision was accepted) events.
For replies, an additional event of
reply.added is generated after the reply is published/approved.
To differentiate replies from posts in
post.published events, you can check the
If a post is already published and is sent for moderation after getting updated, it will result in
The structure for all webhook requests around posts are as followed:
When a member reacts to a post or reply
reaction.added event is triggered. Removing a reaction from a post or reply will result in
The structure for both above events is as followed: