# Help center API

Create and update dimmi help centers, collections, articles, languages, themes, and custom domains using the versioned JSON REST API endpoints.

## Articles

- `GET /articles/{article}/versions` - List article versions: Lists the kept versions of an article, newest first: each publish, restore and snapshot. Returns the versions with their id, number, kind and title.
- `GET /articles/{article}/translations` - List an article's translations: Lists the article's translations into the help center's other languages, without their bodies. Returns each translation's language, title, status and whether it is behind the source.
- `GET /articles/{article}/translations/{locale}/versions` - List a translation's versions: Lists the published versions of the article's translation into one language, newest first. Returns each version's number, title and when it was published.
- `POST /articles/{article}/publications` - Publish an article: Makes the article's saved working copy live on the help center and records it as a new version. Show the person the final text first. Returns the published article.
- `POST /articles/{article}/restorations` - Restore an article version: Puts a kept version's words, address and placing back into the working copy. Readers see nothing until it is published, and the restore can itself be undone by restoring again. Returns the article with the restored working copy.
- `POST /articles/{article}/translations/{locale}/reviews` - Mark a translation up to date: Says the translation still matches the source after the source changed, without publishing it. Returns the translation, no longer outdated.
- `POST /articles/{article}/translations/{locale}/publications` - Publish an article's translation: Makes the translation's working copy live for readers of its language and marks it caught up with the source. Returns the published translation.
- `POST /articles/{article}/translations/{locale}/restorations` - Restore a translation's version: Puts an earlier version of the translation back into its working copy, unpublished. Returns the translation with the restored text.
- `GET /articles/{article}` - Get an article: Reads one article with the Markdown of its working copy, which may be ahead of what readers see. Returns the article with body_markdown, status, has_unpublished_changes and lock_version.
- `GET /articles/{article}/feedback` - Read article ratings: Reads what readers said about an article: how many found it helpful or not, and the latest notes left by those it did not help. Returns the helpful and unhelpful counts and up to 100 recent comments, with the reader when known.
- `GET /articles/{article}/translations/{locale}` - Get an article's translation: Reads the article's translation into one language, with its working copy in Markdown. Returns the translation with its body_markdown and lock_version.
- `PATCH /articles/{article}` - Edit an article: Saves the article's working copy; readers keep seeing the published version until it is published again. Sending status instead unpublishes it to a draft or archives it, which takes it off the help center at once and ignores the other fields. Returns the article as it now is, with its new lock_version.
- `PATCH /articles/{article}/audience` - Limit an article to an audience: Keeps an article to readers in one saved audience, or opens it to everyone again. Takes effect for readers at once, without publishing. Returns the article with its audience.
- `PATCH /articles/{article}/translations/{locale}` - Translate an article: Saves the article's translation into a language, starting a draft when there is none. Readers of that language keep reading the published translation, or the original, until it is published. Returns the translation as it now is, with its new lock_version.
- `DELETE /articles/{article}` - Delete an article: Moves an article to the trash, taking it off the help center if it was published.
- `DELETE /articles/{article}/translations/{locale}` - Delete an article's translation: Deletes the translation; readers of its language read the original again. Its versions stay.
- `DELETE /articles/{article}/translations/{locale}/publications` - Unpublish an article's translation: Takes the translation back to a draft; readers of its language read the original again. Returns the translation as a draft.

## Collections

- `GET /collections/{collection}/translations` - List a collection's translations: Lists the collection's name, slug and description in each language it is translated into. Returns the collection's translations.
- `PATCH /collections/{collection}` - Change a collection: Renames, moves or reorders a collection. There is no draft: readers see the change at once. A changed slug leaves a redirect from the old address. Returns the collection as it now is.
- `PATCH /collections/{collection}/audience` - Limit a collection to an audience: Keeps a whole collection to readers in one saved audience, or opens it to everyone again. Takes effect for readers at once. Returns the collection with its audience.
- `PATCH /collections/{collection}/translations/{locale}` - Translate a collection: Saves the collection's name, slug and description in a language the help center offers. It shows to readers of that language at once. Returns the collection's translation.
- `DELETE /collections/{collection}` - Delete a collection: Moves a collection to the trash. Its articles stay, no longer filed under any collection. A collection with sub-collections must be emptied first.
- `DELETE /collections/{collection}/translations/{locale}` - Delete a collection's translation: Deletes the collection's translation; readers of its language see its default name again.

## Help center languages

- `GET /help-center-languages` - List the languages a help center can offer: Lists every language a help center can be read in, with its name in English and in itself. Returns each language's code, name and native name.

## Help centers

- `GET /help-centers` - List help centers: Lists the workspace's help centers, the public docs sites that also hold the changelog and feature requests. Start here to find the help center id every article, collection, changelog and feature request tool needs. The first call makes the default help center when there is none. Returns every help center with its name, public url, status and settings, the default one marked.
- `GET /help-centers/{help_center}/themes` - List a help center's themes: Lists every theme version uploaded to a help center, newest first, with the one readers see. Returns the theme versions, live set on the one the help center's pages wear.
- `GET /help-centers/{help_center}/articles` - List articles: Lists a help center's articles, up to 200, without their bodies. Use GET /articles/{article} for an article's text. Returns the articles with status, visibility, has_unpublished_changes and lock_version.
- `GET /help-centers/{help_center}/collections` - List collections: Lists a help center's collections, the groups articles are filed under, up to three levels deep. Returns every collection with its parent, slug, position and audience.
- `GET /help-centers/{help_center}/feedback-posts` - List feature requests: Lists a help center's feature requests, 25 a page. Returns the page of requests with status, approval, votes and total, and counts in each status.
- `GET /help-centers/{help_center}/feedback-boards` - List feedback boards: Lists a help center's boards of feature requests, in the order the portal shows them. Returns the boards with visibility, approval and how many requests each holds.
- `GET /help-centers/{help_center}/changelog-labels` - List changelog labels: Lists the labels a changelog files entries under, such as New, Improved and Fixed, which readers can filter by. The defaults are made the first time. Returns the labels in order with name, slug and color.
- `GET /help-centers/{help_center}/changelog-entries` - List changelog entries: Lists a help center's changelog entries, 25 a page, without their bodies. Returns the page of entries with total, and counts of entries in each status.
- `GET /help-centers/{help_center}/translation-states` - See what is left to translate: Lists where every article of the help center stands in each language it offers besides its default: missing, draft or published, and whether it is behind the source. Returns one row per article and language.
- `GET /help-centers/{help_center}/changelog-subscribers` - List changelog subscribers: Lists the people who asked to get changelog entries by email, 25 a page. Returns the page of subscribers with email, linked contact, status and total.
- `GET /help-centers/{help_center}/collection-translations` - List a help center's collection translations: Lists the translated names of every collection of the help center, in every language. Returns each collection's name, slug and description in each language it is translated into.
- `POST /help-centers` - Add a help center: Adds another help center to the workspace, such as one per product or language. It starts empty and active at its own address. Returns the help center with its public url.
- `POST /help-centers/{help_center}/themes` - Upload a help center theme: Uploads a theme's folder as a zip in the file field of a multipart form. dimmi checks every file and parses every template; a theme with problems is refused with each one's file and line, and nothing is kept. A theme that passes is kept as a new version, not yet live. Returns the new theme version.
- `POST /help-centers/{help_center}/articles` - Create an article draft: Writes a new article as a draft. Readers see nothing until it is published with POST /articles/{article}/publications. Returns the draft with its id and lock_version.
- `POST /help-centers/{help_center}/collections` - Create a collection: Adds a collection to file articles under. Collections nest three levels deep at most. The slug is made from the name when left out. Returns the new collection.
- `POST /help-centers/{help_center}/domain/checks` - Check a help center's custom domain now: Starts the domain's checks over, due at once, after the team created or fixed its records. Returns the domain; its status changes once the check ran, within a minute.
- `POST /help-centers/{help_center}/feedback-posts` - Post a feature request: Posts a request on the public board for the team, or for a customer who asked for it. It needs no approval and is visible at once. Check GET /help-centers/{help_center}/feedback-posts for a duplicate first and vote for that instead. Returns the request with its number and public path.
- `POST /help-centers/{help_center}/feedback-boards` - Add a feedback board: Adds a board, such as Bugs, after the help center's others. Returns the board.
- `POST /help-centers/{help_center}/changelog-labels` - Create a changelog label: Adds a label to file entries under. A changelog holds at most 20 labels. Returns the new label.
- `POST /help-centers/{help_center}/changelog-entries` - Create a changelog draft: Writes a new changelog entry as a draft. Readers and subscribers see nothing until it is published with POST /changelog-entries/{entry}/publications. Returns the draft with its id and lock_version.
- `GET /help-centers/{help_center}` - Get a help center: Reads one help center: its address, language, status and look. Returns the help center with its public url and settings.
- `GET /help-centers/{help_center}/domain` - Get a help center's custom domain: Reads the domain a help center answers on, the DNS records to create and where its check stands. Returns the domain with status pending, verified or failed, the reason it failed, and its records; null data when it has none.
- `GET /help-centers/{help_center}/analytics` - Read help center analytics: Reads what readers did over the last days: article views per day, the most read articles with how helpful readers found them, and searches that found nothing, which are articles to write. Returns daily views, top articles, helpful percent and content gaps.
- `GET /help-centers/{help_center}/theme-preview` - Build a help center page for a theme preview: Builds one page of the help center with its live content, as a theme would render it, without rendering it. The dimmi CLI renders the page in the theme on the developer's computer. Returns the page's status, its redirect when it has one, and the template and variables it renders.
- `GET /help-centers/{help_center}/themes/{theme}` - Get a help center theme: Reads one theme version of a help center: its name, settings and the team's values. Returns the theme version.
- `GET /help-centers/{help_center}/changelog-analytics` - Read changelog analytics: Says how readers took a help center's changelog over the last days (30 unless days is given): views by day, reactions, subscribers and the entries read most. Returns the totals, daily views and top entries.
- `GET /help-centers/{help_center}/themes/{theme}/archive` - Download a help center theme: Downloads a theme version's files as a zip, or the default theme's with default as the id. Returns the theme's folder as a zip file.
- `PATCH /help-centers/{help_center}` - Change a help center: Changes a help center's name, subdomain, language, status or look. Readers see every change at once, and a new subdomain moves the public address. Only the fields sent change. Returns the help center as it now is.
- `PATCH /help-centers/{help_center}/domain` - Add a custom domain to a help center: Claims a subdomain the team owns, such as help.example.com, for a help center. It answers there once the CNAME and TXT records it returns exist and the background check verifies them. Returns the domain with the CNAME and TXT records to create.
- `PATCH /help-centers/{help_center}/live-theme` - Change the theme a help center wears: Makes a theme version the one every page of the help center renders in, or the default theme again with a null theme_id. Readers see the change at once. Returns the help center with its theme_id.
- `PATCH /help-centers/{help_center}/themes/{theme}` - Change a theme's settings: Sets the team's values for the settings a theme version declares in its theme.json. A value that does not fit its setting is refused. Returns the theme version with its new values.
- `DELETE /help-centers/{help_center}` - Delete a help center: Deletes a help center that is not the default, with its articles and custom domain. Messengers that showed it show the default one. Only owners may; confirm must be its name exactly.
- `DELETE /help-centers/{help_center}/domain` - Remove a help center's custom domain: Stops a help center answering on its custom domain; it keeps its own address.
- `PATCH /help-centers/{help_center}/feedback-boards` - Reorder feedback boards: Sets the order the portal shows a help center's boards in. Returns the boards in their new order.

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
