Skip to content
dimmiDocs

Help center

Limit articles to some customers

Restrict help center articles or collections to a saved audience and let readers sign in to view them.

To show an article only to specific customers (such as enterprise plans or signed-in users), open Article settings and pick a saved audience under Audience.

  • Hidden from others: people outside the audience cannot see the article in listings or search results.
  • Protected in AI replies: the dimmi agent never quotes or answers from an article the current customer is not allowed to read.
  • Instant update: audience changes take effect right away without republishing.
  • Restrict a whole collection: call PATCH /api/v1/collections/{collection}/audience.

dimmi blocks audiences that rely on values sent by a browser (such as page URLs). Access rules can only use trusted data your backend sent to dimmi.

The help center shows a Sign in button whenever restricted content exists or you set a product login URL. Configure sign-in options under Readers sign in with in Settings → Help centers.

Sign-in method How it works
Email code On by default. Readers enter their email and a 6-digit code. Codes last 10 minutes and expire after 5 wrong guesses.
Your product’s login Sends readers to your app to sign in, then bounces them back with a signed identity token.
Messenger Customers already identified in the messenger open help articles signed in automatically.

A few limits to note:

  • Email code rate limits: 1 code every 30 seconds, up to 5 per hour per email address.
  • Matched customer: signing in with a code logs the reader in as the matching customer, or creates a new lead.
  • Session length: readers stay signed in for 7 days after their last visit, scoped to that help center.
  1. Set Your product’s login to an https URL in your app, such as https://app.acme.example/help-login.
  2. When a reader clicks Sign in, dimmi redirects them to that page with a return_to query parameter.
  3. Sign the user in on your side, then create an identity token on your server.
  4. Redirect back to return_to with #token=<identity_token> appended:
https://acme.dimmi.help/sso?next=%2Farticles%2Fbilling#token=<identity_token>

Always check that return_to starts with your help center’s origin before redirecting.

If your token includes an aud claim, it must match dimmi, dimmi-help, or your workspace ID. Tokens with a nonce claim can only be used once.