About the Comments APIs

The Comments APIs allow you to add commenting functionality to a site.

With the Comments APIs, you can:

  • Create and manage comment content, visibility, and threads.
  • Create and manage categories to organize comments.
  • Set permissions for who can comment, react, and reply.

Use cases

Understanding categories

When you install Wix Comments on a site, the system creates a default category. When a site visitor creates a comment, the system sets the contextId of the comment to the categoryId of the default category.

Wix Blog integrates with Wix Comments and handles comments differently. When you install Wix Blog, the system creates a default category. When a site visitor creates a comment on a blog post, the system sets the contextId of the comment to the referenceId of the blog post rather than to the categoryId of the default category.

Permissions and content moderation

You can set permissions to control who can interact with comments and moderate the content they create.

Use the Categories API to set preventive controls at the category level. Define who can create, react to, and reply to comments before site visitors interact.

Use the Moderation Rules API to apply reactive controls after site visitors create content. Create custom rules to automatically check and filter user-generated content for quality and appropriateness.

Did this help?