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.
What restricting an article does
Section titled “What restricting an article does”- 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.
How readers sign in
Section titled “How readers sign in”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.
Sign readers in through your app
Section titled “Sign readers in through your app”- Set Your product’s login to an
httpsURL in your app, such ashttps://app.acme.example/help-login. - When a reader clicks Sign in, dimmi redirects them to that page with a
return_toquery parameter. - Sign the user in on your side, then create an identity token on your server.
- Redirect back to
return_towith#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.