How to authenticate with the Help.Center API?

Markdown

View as Markdown

Every request to the Help.Center API is authenticated with an API key. This article shows you how to create a key, choose the right scopes, and make your first authenticated call.

Create an API key

  1. Open your Help.Center dashboard.
  2. Go to Settings > General > API.
  3. Create a new API key and select the scopes it needs.

Your Center ID is shown on the same page. You need both values for every request.

Please Note

Your API key is shown only once, when it is created. Store it securely — treat it like a password. If a key is lost or exposed, delete it and create a new one.

API key scopes

Each key carries a set of scopes that control what it can do. Requests to an endpoint the key is not scoped for return 403 insufficient_scope.

ScopeWhat it allows
content.readRead articles, drafts, categories, knowledge items, and center info
content.writeCreate and update articles, drafts, categories, and knowledge items; upload images
content.publishPublish and unpublish articles and translations
content.deleteDelete articles, categories, translations, and knowledge items
conversation.readList and read conversations, messages, discussion, reply drafts, actions, and center users
conversation.writeUpdate conversation status and assignee, edit reply drafts, post discussion entries, and update actions
conversation.replySend email replies to customers

Security Tip

Create multiple API keys with minimal scopes for different purposes. In particular, only grant conversation.reply to integrations that genuinely need to email customers — it is kept separate from conversation.write so that internal tooling can manage the inbox without being able to send anything.

Make your first request

Pass the key in the Authorization header of every request:

Authorization: Bearer YOUR_API_KEY

A convenient pattern is to export both values once in your shell:

export HC_API_KEY="your_api_key"
export HC_CENTER_ID="your_center_id"

Then fetch your center's info to confirm everything works:

curl -s -X GET \
  -H "Authorization: Bearer $HC_API_KEY" \
  "https://api.help.center/v0/centers/$HC_CENTER_ID"

A successful response looks like this:

{
  "id": "your_center_id",
  "object": "center",
  "name": "My Help Center",
  "domain": "mycompany.help.center",
  "default_language": "en",
  "additional_languages": ["de", "fr"],
  "created_at": "2024-01-01T00:00:00.000Z"
}

Authentication errors

HTTP statusCodeMeaning
401invalid_api_keyThe API key is missing, malformed, or has been deleted.
403insufficient_scopeThe key is valid but lacks the scope this endpoint requires.
403center_blockedThe center is blocked and cannot be accessed via the API.

Next steps

Related Articles

Was this article helpful?