Every Notiondesk API request is authenticated with a bearer token: a workspace API key, or an OAuth access token for apps that act on behalf of other Notiondesk customers. This article shows how to create a Notiondesk API key, choose its scopes, send it with your requests, and rotate or revoke it.
Use an API key for automation you run for your own workspace: a script, a scheduled job, a CI step or an internal tool. If you are building an app that other Notiondesk customers connect to, use OAuth instead.
Before you start
- Your workspace is on an Enterprise plan.
- You are the workspace owner or an Admin. Other roles cannot open the API keys page.
Create a Notiondesk API key
- In your Notiondesk dashboard, click Settings.
- Under Workspace, open Developers, then API keys.
- Click Create key.
- Enter a Label that says what the key is for, for example
CI automationorRedirect import.
- Under Scopes, select only the scopes the integration needs. See Choose the right scopes.
- Choose an Expiration: 30 days, 90 days, 1 year or No expiration.
- Click Create.
- Click Copy key and store the key in your secret manager or environment variables.
- Click I have stored the key.
Your key starts with nd_wsk_. The API keys table shows only the first characters of the key, with the key's label, scopes, expiration, last use and status.
Choose the right scopes
A scope is a permission attached to a key. Each Notiondesk API route requires one scope, and a key can hold several.
| Scope | Dashboard description | What it allows in the REST API |
|---|---|---|
read | Read help center operations and insights | Read help centers, articles, collections, changelog, redirects, settings, branding, integrations, sync status, analytics and feedback |
write | Manage help center configuration | Create and update page redirects, and change languages, automatic translation, content, AI optimization, contact form and changelog settings |
sync | Trigger content syncs and translations | Trigger site, article and collection syncs, and turn scheduled sync on or off |
admin | Manage workspace settings and destructive configuration | Delete page redirects, change branding and themes, and configure third-party integrations |
Give each integration the smallest set of scopes it needs:
| Integration | Scopes |
|---|---|
| Sync the help center from a CI pipeline | sync |
| Analytics dashboard or reporting script | read |
| Feedback digest sent to Slack | read only |
| Redirect import after a migration | read, write |
| Branding or integration rollout across help centers | read, admin |
read. Feedback text is written by your readers, so treat it as untrusted. If an LLM processes that text with a key that can also write, the text could steer it into making a change.How workspace roles limit a key
A key never does more than the person who created it can do in your workspace. Notiondesk checks that person's current role on every request:
| Creator's current role | Scopes the key can use |
|---|---|
| Viewer or Billing Manager | read |
| Editor | read, write, sync |
| Admin or workspace owner | read, write, sync, admin |
If the creator's role changes, the key's effective scopes change with it. If the creator leaves the workspace, the key stops working. Manage roles in How to invite a team member.
Send the key with each request
Send the key in the Authorization header with the Bearer scheme:
curl "<https://api.notiondesk.so/sites>" \
-H "Authorization: Bearer $NOTIONDESK_API_KEY" \
-H "nd-version: 2026-10-16"A 200 OK with a list of your help centers confirms the key works. One key works for every help center in its workspace.
The same request in JavaScript:
const response = await fetch("<https://api.notiondesk.so/sites>", {
headers: {
Authorization: `Bearer ${process.env.NOTIONDESK_API_KEY}`,
"nd-version": "2026-10-16",
},
});
const sites = await response.json();And in Python:
import os
import requests
response = requests.get(
"<https://api.notiondesk.so/sites>",
headers={
"Authorization": f"Bearer {os.environ['NOTIONDESK_API_KEY']}",
"nd-version": "2026-10-16",
},
)
sites = response.json()Keep your Notiondesk API key safe
- Keep keys on your server. Never put a key in browser code, a mobile app or a public repository.
- Store keys in environment variables or a secret manager, not in source code.
- Create one key per integration, with its own label, so you can revoke one without breaking the others.
- Choose an expiration for keys used by temporary scripts.
- Rotate a key when someone who knew it leaves your team.
- Check the Last used column and revoke keys nobody uses.
Rotate or revoke a key
Open Settings > Developers > API keys and use the menu at the end of the key's row.
Rotate replaces the secret. Confirm with Rotate: the current secret stops working immediately and the new secret is shown once. Update your integration right away. After a rotation, the key follows the role of the person who rotated it. An expired key cannot be rotated; create a replacement instead.
Revoke disables the key for good. Confirm with Revoke: automations using the key stop working immediately, and this cannot be undone.
Troubleshooting authentication
The API answers 401 authentication_error
authentication_error{
"object": "error",
"code": "authentication_error",
"message": "Invalid or missing API key.",
"request_id": "0f2c1e94-7a1b-4c2d-9e3f-5a6b7c8d9e0f",
"errors": []
}Notiondesk gives the same answer for every refused credential, so the response never reveals why. Check that:
- the header reads
Authorization: Bearer nd_wsk_..., with no quotes or extra spaces;
- the key was not rotated, revoked or expired;
- the key's creator is still a member of the workspace;
- the workspace plan includes API access.
The API answers 403 insufficient_scope
insufficient_scopeThe key is valid but lacks the scope the route requires. The WWW-Authenticate header names the missing scope:
WWW-Authenticate: Bearer error="insufficient_scope", scope="sync"Create a key with that scope, or check that the key's creator still has a role that allows it.
The API answers 403 read_only_access
read_only_accessYour plan allows read-only API access. Read calls keep working, and every write, sync and admin call answers this error, whatever scopes the key or access token holds. It carries no WWW-Authenticate challenge, because a broader scope does not change the answer.
On this plan, a new key can only hold the read scope. Rotating a key keeps its read scope and drops the others. A key with no read scope cannot be rotated, so revoke it and create a new one.
The API answers 403 permission_denied
permission_deniedThe key has the right scope, but the action is not allowed on this help center: for example, the plan does not include the feature, or the help center is disabled. See Handle Notiondesk API errors, rate limits, and retries.
Common questions
Can I see an API key again after creating it?
No. The secret is shown once, when you create or rotate the key. If you lose it, rotate the key and store the new secret.
Can an Editor create an API key?
No. Only the workspace owner and Admins can create, rotate and revoke API keys. An Editor can still connect AI assistants through Workspace MCP.
Do Notiondesk API keys expire?
Only if you choose an expiration when you create the key. Keys created with No expiration work until you rotate or revoke them. Expired keys stay listed in the table with the status Expired.
Should I use an API key or OAuth?
Use an API key for automation you run for your own workspace. Use OAuth when other Notiondesk customers connect your app to their workspace, so they approve its access and can revoke it themselves.