Documentation

Everything you need to embed, configure, and manage comments on your site.

Quick Start

Add the script tag to any HTML page:

<script async
  src="https://cdn.example-comments.com/embed.js"
  data-site="YOUR_SITE_PUBLIC_KEY">
</script>

The widget will create a #comments-root container automatically and render at the bottom of <body>. To control placement, add the container yourself:

<div id="comments-root"></div>

Script Attributes

AttributeRequiredDescription
data-siteYesYour site's public key from the admin dashboard.
data-pageNoOverride the page identifier (defaults to location.pathname).
data-api-baseNoAPI base URL. Use for local or staging environments.
data-themeNolight, dark, or auto (default).
data-viewNotree (threaded) or flat (chronological).
data-unstyledNoSet true to disable built-in styles.

Admin API

All admin endpoints live under /v1/ and require a bearer token. See the OpenAPI spec for the full reference.

Webhooks

Register a webhook URL in the dashboard to receive real-time events. The payload follows an envelope schema with type, version, and data fields.

Feedback