Skip to main content
Use of the AI Helpdesk API has resumed. For details, see Announcements.
The AI Helpdesk API authenticates every request with an API key. An API key is tied to the organization it was created in, so you do not need to specify an organization ID.

Create an API key

Only AI Helpdesk admins can create API keys. The API Keys tab is not shown to operators.
1

Open the API Keys tab

Log in to AI Helpdesk and select Settings in the left menu. Open the API Keys tab.
2

Open the create dialog

Click Create API Key.
3

Enter the key details

Fill in the following fields and click Create API Key.
4

Copy the API key

Copy the API key shown, store it somewhere safe, and click Done.
The API key is shown only once, when you create it, and you cannot view it again later. If you lose a key, create a new one.
An API key is a 48-character string that starts with mb_live_ (followed by 40 hexadecimal characters).

API key permissions

What an API key can do depends on the Role you selected when you created it. Calling an Admin-only endpoint with an Operator key returns 403 with Admin role required.
Changes made with an Admin key apply to your organization’s knowledge and playbooks, the same as changes made in the admin screen. If you only need to read data, create an Operator key.
The API can update only documents created in AI Helpdesk. Documents imported from connected sources (Notion, Box, and others) cannot be updated. Knowledge created through the API and playbook changes made through the API are recorded as Public API (key <key name>) in the creator field and the change history.

Add the API key to requests

Pass your API key in the X-API-Key header on every request. The Authorization: Bearer format is not supported.
The OpenAPI document (/api/v1/openapi.json) and the API documentation (/api/v1/docs) are available without an API key.

Keep your API key secure

  • Create a separate key for each use and give it a Name that shows what it is for
  • Use an Operator key when you do not need to write data
  • Choose 30 days or 60 days for Expiration to fit the use. Use Never expires only when the key cannot be rotated regularly
  • The list on the API Keys tab shows each key’s Expires and Last used values. Revoke keys that are no longer used
  • Do not write keys in source code. Load them from environment variables or a secrets manager
To revoke an API key, click its delete icon (Revoke) in the list on the API Keys tab. Then click Revoke in the confirmation dialog.
A revoked key stops working immediately. You cannot undo this action.

Authentication errors

If the API key cannot be authenticated, the API returns 401 with the following response.
Check whether any of the following applies.
  • The X-API-Key header is missing
  • The key does not start with mb_live_, or part of it was lost when copying
  • The key has been revoked
  • The key has expired (the list on the API Keys tab shows Expired)
Last modified on November 27, 2026