Skip to content

Use the HelpSite REST API

The HelpSite REST API lets your own code list, create, update and delete articles, categories and redirects in your help center, and upload images. Requests go to https://api.helpsite.com/v1 and authenticate with an API key.

Not every plan includes API access. See Pricing.

Where is the API documentation?

The HelpSite API documentation lists every endpoint with its fields, an example response and a curl example. You can also open it from Settings > API keys > REST API docs.

How do I authenticate API requests?

  1. Create an API key in Settings > API keys. See Create an API key.
  2. Send the key in the Authorization header of every request, as Authorization: Bearer YOUR_API_KEY.
  3. If the key covers more than one site, also name the site with a site_id parameter or an X-HelpSite-Site-Id header.

A key that covers one site doesn't need a site ID. What a request may change depends on the key's access: Read only keys can only read, Suggest edits keys can only propose suggested edits, and Read and write keys can make any change your plan allows.

What can the REST API do?

  • Articles: list them (filtered by category, status or your own external ID), get one, create, update and delete them, and create or update an article by its external ID.
  • Categories: list, get, create (including subcategories), update and delete them, create or update one by its external ID, and set the order of a category's articles.
  • Category icons: list the icon names HelpSite suggests for categories.
  • Uploads: upload an image and get back a URL to use in an article.
  • Redirects: list, add and remove redirects, or add many at once.
  • Suggested edits: propose an edit to an article for your team to review, list suggestions, and accept or reject them.

List requests return 10 results at a time. Set per_page (up to 100) and page to get more.

Why is my API request refused?

  • "Access denied. Please pass a valid API key…": the Authorization header is missing, or the key is wrong or revoked.
  • "API access is not available on your current plan": your plan doesn't include the API.
  • site_id_required: the key covers more than one site. Add site_id or the X-HelpSite-Site-Id header.
  • site_not_in_key_scope: the key doesn't cover that site. Use a key that does, or create one.
  • "This API key is read-only" or "This API key can only suggest edits": the key's access doesn't allow that change. Create a Read and write key.