# HelpCenter.io Developers --- Source: https://developers.helpcenter.io/content/developer-platform # Build on HelpCenter.io _Category: Getting started_ HelpCenter.io gives your code several ways into a help center: a REST API, webhooks, an MCP server for AI agents, machine-readable pages for AI assistants and crawlers, a widget you drive from JavaScript, embeds, and single sign-on for readers. This page shows what each one is for, how it authenticates and which plans include it, so you pick the right one before you write any code. ## The surfaces | Surface | What it's for | How it authenticates | Plans | | --- | --- | --- | --- | | **REST API**
`https://api.helpcenter.io/v1` | Read and write articles, categories, images, staged changes, change sets, comments, team notes, interface translations, the help center's design, redirects and custom domain, the widget's install snippet and embedding origins, embeddable FAQ sections, analytics and exports from your own code, and import a knowledge base from another platform. | An API key in the `apikey` header, bound to one help center. Or an OAuth 2.1 access token in `Authorization: Bearer`, for apps that act for a HelpCenter.io user. | All plans. Staged changes are part of Catalyst. Change sets are too, in early preview. A custom domain needs a plan that includes one. | | **Webhooks** | Get a POST request at your URL when articles, categories or the help center change: nine events, such as `article.published` and `category.deleted`. | You register the URL through the REST API, with a Read & write key or an OAuth token that has the `webhooks.manage` scope. Each delivery is signed with your secret in `X-HCio-Signature`. | All plans. | | **MCP server**
`https://mcp.helpcenter.io` | Let Claude, ChatGPT or your own agent search, write and organize a help center and change its design: articles, categories, staged changes, comments, team notes, analytics and the design, as MCP tools. | OAuth 2.1: the person signs in and picks the help centers to share. Headless agents send an API key as `Authorization: Bearer`. | Growth and Catalyst, including their free trials. | | **Help centers built by AI agents**
`https://api.helpcenter.io/v1/agent/help-centers` | Let an AI agent build a help center for someone who has no HelpCenter.io account yet, fill it over the REST API, and hand it over with a link they use to claim it. | None to create one. The answer carries a key for that help center, which the agent sends in the `apikey` header. | None to create one. The help center stays unpublished until its owner has claimed it and published it. The agent's redirects and custom domain wait until the owner has claimed it, verified their email address and activated a plan. | | **Public MCP server**
`https:///mcp` | Let your readers' AI assistants search and read your published articles, with the tools `search`, `fetch` and `list_categories`. | None. It is anonymous and read-only. | All plans, on published help centers. | | **llms.txt, ai.txt and Markdown pages** | Give AI tools and crawlers an index of your articles at `/llms.txt`, the full text of your articles at `/llms-full.txt`, and your help center's pages as Markdown when they send `Accept: text/markdown`. | None. They show what a visitor without an account can read. | All plans, once the help center is published. | | **Widget and its JavaScript API** | Put your help center in a corner of your website or app, and open it on an article or category from your own buttons and links. | None on a published help center. A help center that isn't published yet shows its widget to its team alone. On a private one, readers sign in with a JWT you sign on your server. | All plans. Signing readers in needs single sign-on (Catalyst). | | **Embedding** | Show your whole help center inside your app in a frame, and optionally keep it from being browsed as a normal website. | The page must be on your help center's **Embedding origins** list. A JWT signs readers in to a private help center when the help center is on your own site, for example `help.example.com` inside `app.example.com`. | See [pricing](https://helpcenter.io/pricing). | | **JWT single sign-on** | Sign readers in to a private help center with your own login, so they never see a second password. | A JWT that your server signs with the shared secret from your settings (HS256). | Catalyst. | ## Which one fits your job | You want to | Use | | --- | --- | | Publish articles from your docs repository or another system | The REST API with an API key. See [Sync articles from a Git repository](https://developers.helpcenter.io/content/sync-articles-from-git). | | Move an existing knowledge base into HelpCenter.io | The REST API's bulk import, or for a public Zendesk Guide, Intercom, Document360, Help Scout Docs, Front Knowledge Base or HelpDocs help center, HelpCenter.io's importer at `/v1/imports`. See [Import articles in bulk](https://developers.helpcenter.io/content/import-articles-in-bulk). | | Have an AI agent move someone's knowledge base before they have an account | The REST API, starting with `POST /v1/agent/help-centers`. See [Migrate a knowledge base as an AI agent](https://developers.helpcenter.io/content/migrate-a-knowledge-base-as-an-ai-agent). | | Keep a copy of every article and category | The REST API's export. See [Back up your help center](https://developers.helpcenter.io/content/back-up-your-help-center). | | Rebuild a site, clear a cache or post to chat when content changes | Webhooks. See [Receive and verify webhooks](https://developers.helpcenter.io/content/receive-and-verify-webhooks). | | Build an app that other HelpCenter.io customers connect to | The REST API with OAuth 2.1. See [OAuth 2.1 for apps and AI clients](https://developers.helpcenter.io/content/oauth). | | Have an AI assistant draft, edit and organize articles | The MCP server. See [Connect an AI assistant to your help center](https://developers.helpcenter.io/content/connect-an-ai-assistant-to-your-help-center). | | Let your customers' AI assistants answer from your published articles | The public MCP server and `/llms.txt`. See [The public MCP server of a help center](https://developers.helpcenter.io/content/public-mcp-server). | | Offer help inside your product | The widget. See [Widget installation and options](https://developers.helpcenter.io/content/widget-options). | | Show the whole help center inside your app | Embedding. See [Embed your help center in your app](https://developers.helpcenter.io/content/embed-your-help-center). | | Let readers of a private help center use their account with you | JWT single sign-on. See [How JWT single sign-on works](https://developers.helpcenter.io/content/how-jwt-sso-works). | An API key belongs to one help center. An OAuth token belongs to a person, and reaches only the help centers that person chose to share with your app. If your software works on other people's help centers, use OAuth. ## What the REST API doesn't do - **No per-visitor analytics.** The analytics endpoints report figures for the help center, its articles and its search queries, never for a single visitor or session. - **Search is keyword search.** `GET /v1/articles?search=` matches words in titles and content, and returns only published articles that anyone can read, the best 1,000 matches at most, in your default language or the `lang` you send. It doesn't use the AI search your readers may get. - **Deleting an article moves it to the Trash.** You can restore it from the dashboard. The API has no permanent delete for articles. - **Most settings stay in the dashboard.** Help center settings such as visibility, publishing, languages, your team, API keys and single sign-on are managed in the dashboard, not over the API. Four things can be changed over the API: the design (see [Design API](https://developers.helpcenter.io/content/design-api)); the custom domain, with `/v1/custom-domain` and the `domain.manage` scope, which an API key holds only when an Owner or Admin ticks **Allow managing the custom domain** for it in Settings, under **API keys**; redirects, with `/v1/redirects` and an API key; and the websites allowed to embed your help center, with `PATCH /v1/widget/embedding-origins` and the `embed.manage` scope. See [Custom domain](https://developers.helpcenter.io/content/custom-domain-api) and [Redirects](https://developers.helpcenter.io/content/redirects-api). ## Where to start - **Make your first request:** [Quickstart: your first API request](https://developers.helpcenter.io/content/quickstart-your-first-request) takes you from a new key to a published article. - **Learn the rules every request follows:** [Requests and responses](https://developers.helpcenter.io/content/requests-responses-and-conventions), [Pagination](https://developers.helpcenter.io/content/pagination), [Rate limits](https://developers.helpcenter.io/content/rate-limits) and [Errors](https://developers.helpcenter.io/content/errors). - **Authenticate:** [API keys](https://developers.helpcenter.io/content/api-keys) for your own help center, [OAuth 2.1 for apps and AI clients](https://developers.helpcenter.io/content/oauth) for other people's. - **Look up an endpoint:** the REST API reference has a page for each resource, such as [Articles](https://developers.helpcenter.io/content/articles-api). - **Connect AI agents:** [The HelpCenter.io MCP server](https://developers.helpcenter.io/content/the-mcp-connector-for-ai-agents). - **Add help to your product:** [Widget installation and options](https://developers.helpcenter.io/content/widget-options). - **Sign readers in:** [How JWT single sign-on works](https://developers.helpcenter.io/content/how-jwt-sso-works). - **Follow a recipe:** [Sync articles from a Git repository](https://developers.helpcenter.io/content/sync-articles-from-git), [Back up your help center](https://developers.helpcenter.io/content/back-up-your-help-center) and more in Guides and recipes. ## Related - [Quickstart: your first API request](https://developers.helpcenter.io/content/quickstart-your-first-request) - [API keys](https://developers.helpcenter.io/content/api-keys) - [The HelpCenter.io MCP server](https://developers.helpcenter.io/content/the-mcp-connector-for-ai-agents) - [Widget installation and options](https://developers.helpcenter.io/content/widget-options) - [How JWT single sign-on works](https://developers.helpcenter.io/content/how-jwt-sso-works) --- Source: https://developers.helpcenter.io/content/quickstart-your-first-request # Quickstart: your first API request _Category: Getting started_ Go from nothing to a published article in a few minutes: create an API key, list your articles, then create, publish and delete an article. Each step shows the request and the real response, and the end of the page has the whole thing as one program in Node.js, Python and PHP. ## Before you start - You need to be an Owner or Admin of the help center: only they can create API keys. The API works on every plan. A new account has no help center, and so no API keys, until its owner has chosen the help center's address during setup. - Are you an AI agent moving a knowledge base for someone who has no HelpCenter.io account? You don't need a key to start: see [Migrate a knowledge base as an AI agent](https://developers.helpcenter.io/content/migrate-a-knowledge-base-as-an-ai-agent). - You need `curl` for the steps. For the program at the end, use Node.js 18 or later, Python 3.8 or later, or PHP 8 with the curl extension. None of them needs extra packages. - Step 5 publishes a real article, and step 6 deletes it again. If you have a help center for testing, use it. ## Step 1: Create an API key In the dashboard, click the gear icon, then **Settings**. Under **API keys**, click **New key**, name the key, pick the **Read & write** scope and click **Create key**. Leave the other settings off: they add team notes, the design, the custom domain and redirects to other sites, which this quickstart doesn't use. Then click **Copy**. For every option, see [Create an API key](https://self.helpcenter.io/content/create-an-api-key). ![Screen recording. Under API keys, click New key. Name it after where it will be used, and pick a Scope. Click Create key, then Copy it somewhere safe.](https://helpcenter-io.s3.amazonaws.com/uploads/self/Ixbsnu8aauTTHSm1dLEwsos9dgUrKZI9INdmuhXH.gif) A Read & write key can read and change content. A Read only key can only read it. A key works with the help center it was created in, and only there. ## Step 2: Keep the key in an environment variable Every example in these docs reads the key from `HELPCENTER_API_KEY`, so it never appears in your code: ``` export HELPCENTER_API_KEY="paste-your-key-here" ``` Keep keys on your computer or your server. Never put one in code that runs in a browser, or commit it to a repository. ## Step 3: List your articles Send the key in the `apikey` header. Also send `Accept: application/json` on every request, as the examples do: ``` curl "https://api.helpcenter.io/v1/articles?limit=2" \ -H "apikey: $HELPCENTER_API_KEY" \ -H "Accept: application/json" ``` The response lists the two most recently updated articles, drafts included, and a `meta` block for paging. Here each article is trimmed to a few fields; step 4 shows the full article object: ``` { "status": "success", "articles": [ { "id": 521, "title": {"en": "Download your invoices"}, "category_id": 316, "published": false, "updated_at": "2026-09-30 08:19:58" }, { "id": 522, "title": {"de": "Passwort zurücksetzen", "en": "Reset your password"}, "category_id": 293, "published": true, "updated_at": "2026-09-30 08:19:58" } ], "meta": {"page": 1, "per_page": 2, "total_pages": 57, "items_count": 114} } ``` A title is a map keyed by language code, never a bare string. The same goes for `slug` and `content`. `published` says whether the article is published or a draft. ## Step 4: Create a draft Send the title and the HTML content in your help center's default language, and the `id` of a category. `GET /v1/categories` lists your categories. Leave `category_id` out to file the article under Uncategorized. ``` curl https://api.helpcenter.io/v1/articles \ -H "apikey: $HELPCENTER_API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "title": { "en": "Pay by bank transfer" }, "content": { "en": "

You can pay any invoice by bank transfer. Use the invoice number as the payment reference.

" }, "category_id": 316 }' ``` The API answers `201 Created` with the new article: ``` { "status": "success", "action": "created", "article": { "id": 735, "external_id": null, "title": {"en": "Pay by bank transfer"}, "slug": {"en": "pay-by-bank-transfer"}, "author": {"id": 412, "name": "Maya Chen", "avatar": null}, "content": { "en": "

You can pay any invoice by bank transfer. Use the invoice number as the payment reference.

" }, "category_id": 316, "categories": [], "type": null, "published": false, "has_staged_changes": false, "staged_locales": [], "staged_updated_at": null, "visibility": "public", "share_token": null, "views": null, "audio_file": null, "metadata": {"title": {}, "description": {}}, "ratings": {"thumbs_up": 0, "thumbs_down": 0, "love": 0}, "published_translations": [], "shared_with": [], "created_at": "2026-09-30 08:23:12", "updated_at": "2026-09-30 08:23:12", "_links": { "view": { "method": "GET", "url": "https://acme.helpcenter.io/content/pay-by-bank-transfer" } } } } ``` The article is a draft (`"published": false`), and HelpCenter.io made its slug from the title. In the response to a create, `type` and `views` are `null`; the next read shows `"article"` and `0`. If your help center's default language isn't English, replace `en` with its code, for example `de`. The API refuses language codes that aren't enabled on your help center. ## Step 5: Publish it Set `published` to `true`. Use the `id` from your response in place of `735`: ``` curl -X PATCH https://api.helpcenter.io/v1/articles/735 \ -H "apikey: $HELPCENTER_API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "published": true }' ``` The response carries the whole article again. Trimmed to the fields that changed and its address: ``` { "status": "success", "article": { "id": 735, "title": {"en": "Pay by bank transfer"}, "type": "article", "published": true, "views": 0, "updated_at": "2026-09-30 08:23:12", "_links": { "view": { "method": "GET", "url": "https://acme.helpcenter.io/content/pay-by-bank-transfer" } } } } ``` The article is published. Readers can open it once the help center itself is published: a new help center starts unpublished, so only its team sees its pages, and anyone else gets a `404` page saying it isn't published yet. `published` in `GET /v1/sites` tells you which it is. An Owner or Admin publishes the help center under **Settings**, in the **Publishing** card, once the owner has confirmed their email address and activated a plan. `_links.view.url` is the article's address on your help center. ## Step 6: Delete it ``` curl -X DELETE https://api.helpcenter.io/v1/articles/735 \ -H "apikey: $HELPCENTER_API_KEY" \ -H "Accept: application/json" ``` The response confirms the delete: ``` { "status": "success", "message": "Article moved to trash.", "article": {"id": 735, "deleted_at": "2026-09-30T08:23:12+00:00"} } ``` The article leaves your help center and its search, and waits in the Trash. Anyone on your team who can edit articles can restore it from there: see [Delete and restore articles](https://self.helpcenter.io/content/delete-and-restore-articles). ## The whole thing as one program This program runs steps 3 to 6 in one go. It takes the first of your categories, and it stops with the API's answer if a request fails. ``` // Quickstart: list, create, publish and delete an article with the HelpCenter.io API. // Node.js 18 or later, no dependencies. Run: node quickstart.js const API = 'https://api.helpcenter.io/v1'; async function api(method, path, body) { const headers = { apikey: process.env.HELPCENTER_API_KEY, Accept: 'application/json' }; if (body !== undefined) headers['Content-Type'] = 'application/json'; const res = await fetch(API + path, { method, headers, body: body === undefined ? undefined : JSON.stringify(body), }); const text = await res.text(); if (!res.ok) throw new Error(`${method} ${path} failed with ${res.status}: ${text}`); return JSON.parse(text); } async function main() { // 1. List the two most recently updated articles. const list = await api('GET', '/articles?limit=2'); console.log(`Your help center has ${list.meta.items_count} articles.`); for (const article of list.articles) { console.log(`- ${article.id}: ${JSON.stringify(article.title)}`); } // 2. Pick a category for the new article (0 files it under Uncategorized). const { categories } = await api('GET', '/categories?limit=1'); const categoryId = categories.length > 0 ? categories[0].id : 0; // 3. Create a draft. const created = await api('POST', '/articles', { title: { en: 'Pay by bank transfer' }, content: { en: '

You can pay any invoice by bank transfer. ' + 'Use the invoice number as the payment reference.

', }, category_id: categoryId, }); const id = created.article.id; console.log(`Created draft ${id}.`); // 4. Publish it. const published = await api('PATCH', `/articles/${id}`, { published: true }); console.log(`Published at ${published.article._links.view.url}`); // 5. Delete it. It moves to the Trash, where you can restore it. const deleted = await api('DELETE', `/articles/${id}`); console.log(`${deleted.message} Deleted at ${deleted.article.deleted_at}.`); } main().catch((err) => { console.error(err.message); process.exit(1); }); ``` ``` # Quickstart: list, create, publish and delete an article with the HelpCenter.io API. # Python 3.8 or later, standard library only. Run: python3 quickstart.py import json import os import sys import urllib.error import urllib.request API = "https://api.helpcenter.io/v1" def api(method, path, body=None): headers = {"apikey": os.environ["HELPCENTER_API_KEY"], "Accept": "application/json"} data = None if body is not None: data = json.dumps(body).encode("utf-8") headers["Content-Type"] = "application/json" request = urllib.request.Request(API + path, data=data, method=method, headers=headers) try: with urllib.request.urlopen(request) as response: return json.load(response) except urllib.error.HTTPError as err: sys.exit(f"{method} {path} failed with {err.code}: {err.read().decode()}") def main(): # 1. List the two most recently updated articles. listing = api("GET", "/articles?limit=2") print(f"Your help center has {listing['meta']['items_count']} articles.") for article in listing["articles"]: print(f"- {article['id']}: {json.dumps(article['title'], ensure_ascii=False)}") # 2. Pick a category for the new article (0 files it under Uncategorized). categories = api("GET", "/categories?limit=1")["categories"] category_id = categories[0]["id"] if categories else 0 # 3. Create a draft. created = api("POST", "/articles", { "title": {"en": "Pay by bank transfer"}, "content": { "en": "

You can pay any invoice by bank transfer. " "Use the invoice number as the payment reference.

" }, "category_id": category_id, }) article_id = created["article"]["id"] print(f"Created draft {article_id}.") # 4. Publish it. published = api("PATCH", f"/articles/{article_id}", {"published": True}) print(f"Published at {published['article']['_links']['view']['url']}") # 5. Delete it. It moves to the Trash, where you can restore it. deleted = api("DELETE", f"/articles/{article_id}") print(f"{deleted['message']} Deleted at {deleted['article']['deleted_at']}.") if __name__ == "__main__": main() ``` ``` = 400) { fwrite(STDERR, "$method $path failed with $status: $raw\n"); exit(1); } return json_decode($raw, true); } // 1. List the two most recently updated articles. $list = api('GET', '/articles?limit=2'); echo "Your help center has {$list['meta']['items_count']} articles.\n"; foreach ($list['articles'] as $article) { $title = json_encode($article['title'], JSON_UNESCAPED_UNICODE); echo "- {$article['id']}: $title\n"; } // 2. Pick a category for the new article (0 files it under Uncategorized). $categories = api('GET', '/categories?limit=1')['categories']; $categoryId = $categories ? $categories[0]['id'] : 0; // 3. Create a draft. $created = api('POST', '/articles', [ 'title' => ['en' => 'Pay by bank transfer'], 'content' => [ 'en' => '

You can pay any invoice by bank transfer. ' . 'Use the invoice number as the payment reference.

', ], 'category_id' => $categoryId, ]); $id = $created['article']['id']; echo "Created draft $id.\n"; // 4. Publish it. $published = api('PATCH', "/articles/$id", ['published' => true]); echo "Published at {$published['article']['_links']['view']['url']}\n"; // 5. Delete it. It moves to the Trash, where you can restore it. $deleted = api('DELETE', "/articles/$id"); echo "{$deleted['message']} Deleted at {$deleted['article']['deleted_at']}.\n"; ``` Save it as `quickstart.js`, `quickstart.py` or `quickstart.php`, and run it with your key in the environment: ``` export HELPCENTER_API_KEY="paste-your-key-here" node quickstart.js ``` It prints something like this: ``` Your help center has 114 articles. - 522: {"de":"Passwort zurücksetzen","en":"Reset your password"} - 521: {"en":"Download your invoices"} Created draft 751. Published at https://acme.helpcenter.io/content/pay-by-bank-transfer Article moved to trash. Deleted at 2026-09-30T08:26:24+00:00. ``` ## Troubleshooting | Response | Cause and fix | | --- | --- | | `401` `"status": "unauthorized"` | The key is missing, mistyped or deleted, or the person who created it is no longer an Owner or Admin of the help center. The body's `docs_url` links to this page. Check that `HELPCENTER_API_KEY` is set in the terminal you run the command in, and that the header is named `apikey`. | | `403` `insufficient_scope` | The key is **Read only**. Create a **Read & write** key. | | `400` `Unsupported language key "en" provided.` | English isn't a language of your help center. Use your default language's code. | | `400` `{"category_id":["The selected category id is invalid."]}` | No category with that id exists in this help center. Take an id from `GET /v1/categories`, or leave `category_id` out. | | `400` `{"title":["The title field is required."]}` although you sent a title | The request had no `Content-Type: application/json` header, so the API didn't read the body. | Every other status and code is explained in [Errors](https://developers.helpcenter.io/content/errors). ## What to read next - [Requests and responses](https://developers.helpcenter.io/content/requests-responses-and-conventions): headers, languages, dates and HTML or Markdown content. - [Articles](https://developers.helpcenter.io/content/articles-api): every field and every article endpoint. - [API keys](https://developers.helpcenter.io/content/api-keys): scopes, team notes access, and keeping keys safe. - [Rate limits](https://developers.helpcenter.io/content/rate-limits): how many requests you can make, and how to wait when you hit a limit. ## Related - [API keys](https://developers.helpcenter.io/content/api-keys) - [Requests and responses](https://developers.helpcenter.io/content/requests-responses-and-conventions) - [Articles](https://developers.helpcenter.io/content/articles-api) - [Errors](https://developers.helpcenter.io/content/errors) --- Source: https://developers.helpcenter.io/content/requests-responses-and-conventions # Requests and responses _Category: Getting started_ Every request to the HelpCenter.io API follows the same rules: one base URL, a few headers, JSON in and out, and the same conventions for languages, dates and content. This page covers them once, so each reference page can stay short. ## Base URL Send every request to `https://api.helpcenter.io/v1`. Paths in these docs, such as `/articles`, are relative to it. The version is part of the path. Use HTTPS. A request to `http://` gets a `301` redirect, and many HTTP clients follow a redirect with a `GET`, dropping the method and the body of your request. To check that a key works, call the base URL itself. Any valid key or token gets this answer, whatever its scope: ``` curl https://api.helpcenter.io/v1 \ -H "apikey: $HELPCENTER_API_KEY" \ -H "Accept: application/json" ``` The response: ``` { "status": "success", "message": "This is the public API of HelpCenter.io" } ``` Without a valid key, the same request answers `401 Unauthorized`: ``` { "status": "unauthorized", "docs_url": "https://developers.helpcenter.io/content/quickstart-your-first-request", "create_url": "https://api.helpcenter.io/v1/agent/help-centers", "agent_docs_url": "https://developers.helpcenter.io/content/migrate-a-knowledge-base-as-an-ai-agent" } ``` Branch on `status`. The other fields are links for whoever reads the response: `docs_url` to the quickstart, and `create_url` and `agent_docs_url` for an AI agent with no account, which can create a help center without one (see [Migrate a knowledge base as an AI agent](https://developers.helpcenter.io/content/migrate-a-knowledge-base-as-an-ai-agent)). ## Headers | Header | Send it | What it does | | --- | --- | --- | | `apikey: ` | With an API key | Authenticates the request. The key decides which help center you work on. See [API keys](https://developers.helpcenter.io/content/api-keys). | | `Authorization: Bearer ` | With an OAuth 2.1 access token | Authenticates the request as the person who connected your app. See [OAuth 2.1 for apps and AI clients](https://developers.helpcenter.io/content/oauth). If a request carries both headers, the API uses `apikey`. | | `X-HCio-Site: ` | With an OAuth token that reaches more than one help center | Names the help center to act on. The `site` query parameter does the same. API keys ignore both. See [Choose which help center a request acts on](https://developers.helpcenter.io/content/choosing-a-help-center). | | `Accept: application/json` | Always | Asks for JSON. The API answers in JSON, errors included. See the next section. | | `Content-Type: application/json` | With a JSON body | Tells the API to read the body as JSON. See Request bodies below. | Header names are not case-sensitive, so `ApiKey` works too. `api_key` and `X-API-Key` don't: the API reads an API key only from the `apikey` header. ## Errors are always JSON The API answers every error in JSON, with or without `Accept: application/json`: an invalid value, an unknown path or id, a wrong method, a rate limit and a server error. It never answers with a redirect, so a client that follows redirects can't mistake a refusal for a success. Send the header anyway, as the examples on this site do. Only the web servers in front of the API answer otherwise, when they refuse a request before it reaches the API: a body over 32 MB, or more requests than they allow from one address (see [Rate limits](https://developers.helpcenter.io/content/rate-limits)). So check the status code before you parse a body. For example, `"published": "yes"` isn't a valid value. `PATCH /v1/articles/{id}` answers `422 Unprocessable Entity`: ``` { "status": "validation_error", "message": "The request could not be accepted.", "errors": { "published": ["The published field must be true or false."] } } ``` An unknown path answers `404` with `{"status": "error", "message": "Not found."}`, and an unknown article or category id answers `404` with `Article not found.` or `Category not found.` Check the status code first, then `status` or `code`. [Errors](https://developers.helpcenter.io/content/errors) lists every case. ## Request bodies Send request bodies as JSON, with `Content-Type: application/json`. Without that header the API doesn't read the body as JSON, so a complete request fails as if it were empty: `POST /v1/articles` answers `400` with `{"title":["The title field is required."]}`. Image files are the exception: they go up as `multipart/form-data`. See [Images](https://developers.helpcenter.io/content/images-api). Parameters of `GET` and `DELETE` requests go in the query string. ## Responses A successful response is a JSON object with `"status": "success"`. A single resource comes back under its own name, such as `article`, `category` or `image`. A list comes back under the plural name, with a `meta` block for paging: ``` { "status": "success", "categories": [ { "id": 293, "parent": null, "name": {"de": "Erste Schritte", "en": "Getting started"}, "description": { "en": "Set up your account and invite your team.", "de": "Konto einrichten und das Team einladen." }, "icon": "fa://fa-solid fa-rocket", "position": 0, "privacy": "public", "created_at": "2026-09-30 08:03:09", "updated_at": "2026-09-30 08:19:36" }, { "id": 316, "parent": null, "name": {"de": "Abrechnung", "en": "Billing"}, "description": [], "icon": "fa://fa-solid fa-credit-card", "position": 1, "privacy": "public", "created_at": "2026-09-30 08:19:36", "updated_at": "2026-09-30 08:19:36" } ], "meta": {"page": 1, "per_page": 2, "total_pages": 2, "items_count": 3} } ``` | Status | When | | --- | --- | | `200 OK` | Reads, updates and deletes. Also a `POST /v1/articles` that updated an existing article through its `external_id`: the body says `"action": "updated"`. | | `201 Created` | Something was created: an article (`"action": "created"`), a category, a comment, a webhook, a change set. | | `202 Accepted` | Publishing a change set. The work runs in the background, and `status` is `queued`, or `scheduled` for a later time. | | `207 Multi-Status` | Bulk requests (`POST /v1/articles/bulk`, `POST /v1/images/bulk`). Every item has its own result in `results`, so read each one: the top-level `status` is `success` even when every item failed. Adding items to a change set answers `207` with `"status": "partial"` when some were rejected. | Most deletes return a short confirmation instead of the whole resource. Deleting an article: ``` { "status": "success", "message": "Article moved to trash.", "article": {"id": 735, "deleted_at": "2026-09-30T08:23:12+00:00"} } ``` Failed requests have `"status": "error"`, `"validation_error"` or `"unauthorized"`, and some have no `status` at all: see [Errors](https://developers.helpcenter.io/content/errors). Responses may also set cookies. Ignore them: the API authenticates only from headers. ## Fields in several languages Text that a help center can translate is a map from language code to text, never a bare string: an article's `title`, `slug` and `content`, its SEO `metadata.title` and `metadata.description`, and a category's `name` and `description`. Reads return every language an item has. Writes change only the languages you send, and leave the others as they are. ``` curl https://api.helpcenter.io/v1/articles \ -H "apikey: $HELPCENTER_API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "title": { "en": "Cancel your subscription", "de": "Abonnement kündigen" }, "content": { "en": "

Cancel at any time under Account → Billing.

", "de": "

Sie können jederzeit unter Konto → Abrechnung kündigen.

" }, "category_id": 316 }' ``` The response, trimmed to the fields in several languages: ``` { "status": "success", "action": "created", "article": { "id": 736, "title": {"en": "Cancel your subscription", "de": "Abonnement kündigen"}, "slug": {"en": "cancel-your-subscription", "de": "abonnement-kundigen"}, "content": { "en": "

Cancel at any time under Account → Billing.

", "de": "

Sie können jederzeit unter Konto → Abrechnung kündigen.

" }, "published": false, "published_translations": [] } } ``` **Language codes.** A key is one of these codes, spelled exactly: `ar`, `bg`, `ca`, `cs`, `da`, `de`, `de-AT`, `de-CH`, `el`, `en`, `es`, `eu`, `fa`, `fi`, `fil`, `fr`, `ga`, `gl`, `he`, `hi`, `hu`, `hy`, `id`, `it`, `ja`, `ko`, `lt`, `lv`, `ms`, `mt`, `mul` (mixed languages), `nl`, `no`, `pl`, `pt`, `ro`, `ru`, `sv`, `th`, `tr`, `uk`, `vi`, `zh-Hans`, `zh-Hant`. Portuguese is `pt`; there is no `pt-BR`. **Enabled languages only.** A key must also be your help center's default language or one you added to it. Otherwise article writes answer `400`: ``` { "status": "error", "message": "Unsupported language key \"fr\" provided." } ``` Category writes answer `422` with a `validation_error` on the field instead, such as `"fr" is not enabled on this help center, so it cannot key a name.` **Unreleased translations.** Writing a second language doesn't show it to readers. A translation stays unreleased until someone releases it in the dashboard or publishes a staged edit that releases it, so `published_translations` above is still empty. See [Release translations and change your default language](https://self.helpcenter.io/content/manage-languages) and [Staged changes and versions](https://developers.helpcenter.io/content/staged-changes-api). ### lang and locale Several endpoints take a `lang` or `locale` parameter, and they don't all do the same thing: | Parameter | Endpoints | What it does | | --- | --- | --- | | `lang` | `GET /v1/articles` | Picks the language that `search` matches in. It doesn't filter the response: every article still comes back with all its languages. | | `lang` | `GET /v1/comments`, `GET /v1/articles/{id}/comments`, `GET /v1/feedback`, `/v1/analytics/*` | Keeps one language. It must be one of your help center's languages, or the request fails with `422`. | | `lang` | `GET /v1/articles/{id}/notes` | Keeps one language. It isn't checked, so a typo returns an empty list. | | `lang` | `POST /v1/articles/{id}/comments`, `POST /v1/articles/{id}/feedback` | The language of what you post. Feedback in a language your help center doesn't have is recorded in its default language. | | `lang` | `GET /v1/translations` | Narrows each interface text to one language. | | `locale` | `/v1/articles/{id}/staged`, `/v1/articles/{id}/versions` | The one language a staged change or a version belongs to. | ## Dates and times Every time is in UTC. The API uses two formats: | Format | Example | Where | | --- | --- | --- | | `YYYY-MM-DD HH:MM:SS`, no offset | `2026-09-30 08:23:12` | `created_at` and `updated_at` of articles, categories, images and sites | | ISO 8601 with an offset | `2026-09-30T08:23:12+00:00` | The other timestamps, such as `deleted_at` and the times in staged changes, versions, change sets, comments, team notes, reader feedback, webhooks and the export | Read the first format as UTC. Analytics date ranges (`from` and `to`) are plain dates, `YYYY-MM-DD`. When you send a time, send it in UTC too: `GET /v1/articles?updated_since=` ignores an offset, so `2026-09-30T10:00:00+02:00` is read as 10:00 UTC, two hours later than you meant. `GET /v1/feedback?updated_since=` reads the offset. ## IDs IDs are integers: articles, categories, images, comments, webhooks, change sets and help centers. A help center also has a `uuid`. An article can also carry your own key, `external_id`, of up to 191 characters: send it with `POST /v1/articles`, and a later request with the same `external_id` updates that article instead of creating another. External ids are matched exactly, upper and lower case included. ## Article content: HTML and Markdown Article `content` is HTML. HelpCenter.io stores the HTML you send as it is, apart from removing spaces at the start and end, `