--- title: "API keys" slug: "api-keys" description: "Generate API tokens in Document360 to securely integrate with applications, manage access, and enhance your knowledge base interactions." tags: ["API"] updated: 2026-11-23T08:45:35Z published: 2026-11-23T08:45:35Z canonical: "docs.document360.com/api-keys" excludeFromExternalSearch: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.document360.com/llms.txt > Use this file to discover all available pages before exploring further. # API keys An API key is a unique code that Document360 generates to allow external applications to communicate with your knowledge base securely. You can create and manage API keys directly from the Document360 portal to enable integrations with analytics tools, automation platforms, or any third-party service that supports the Document360 API. It's the current, recommended way to authenticate. But, if you're looking for the older, project-wide credential, see [API tokens (v2)](/help/docs/api-keys#api-tokens-v2). --- ## When to use API keys Use API keys when you need to: - **Integrate with external tools**: Connect Document360 with analytics platforms, CRMs, or automation tools that need to read or write knowledge base data. - **Automate content workflows**: Use POST or PUT keys to programmatically create or update articles without logging into the portal. - **Restrict operation types**: Issue separate keys per integration, each scoped to only the HTTP methods that integration requires (for example, a read-only GET key for a reporting dashboard). - **Manage media asset access**: Control how long signed URLs for drive assets remain valid when accessed via the API in private or mixed projects. --- ## Before you begin Before you create the key, decide: - The **portal role** it needs (what API operations it may perform). - The **content role** it needs (what it may do to the content it can reach). - The **content-access scope** - the whole project, or specific workspaces/languages/categories. - Whether it should **expire**. You can change a key's role and content scope later from its **Edit** dialog, so this isn't a one-shot decision. But get it as close to right as you can up front, since editing a key's scope changes what any integration already using its secret can do, immediately and without warning to that integration. --- ## API keys page The **API keys** page is the central interface for viewing, creating, editing, and deleting keys. ![API keys page showing the Enhanced keys (v3) and API keys (v2) tabs, with the View rate limit link and the keys-used count at the top right of the key list.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/api-keys-overview.png) NOTE What this page looks like depends on the project's history: - **Projects that already had legacy tokens before API keys (v3) launched** show two tabs — **Enhanced keys (v3)** and **API keys (v2)** - with a banner on the v2 tab recommending a move to enhanced keys for more granular control. - **Projects created after API keys (v3) launched** show a single, unified **API keys** page with no tabs and no version picker. Every key created here is a v3-style API key - there's no legacy API token option. The top right of the page shows: - **Keys used**: How many keys you've created against your plan's quota, for example **3/8 keys used**. The quota includes any additional keys you've bought through **Buy more**. The count includes both API keys (v3) and API tokens (v2), and appears on both tabs. - **View rate limit**: Hover over it to see a popover with the read and write rate limits for your project, or click it to keep the popover open. For details, see [Rate limits](/help/docs/api-keys#rate-limits). - **Buy more**: Sends a request for additional API keys to the Document360 team, who will follow up with you. Only users with billing access see this option. You can send one request every 24 hours. - When you've used all the keys your plan allows, **Create API key** is disabled. Delete a key you no longer need, or click **Buy more** to request more keys. Document360 doesn't track where a key is used or which endpoints it's called against. --- ## Creating an API key 1. Navigate to **Settings** () > **Knowledge base portal** > **API keys**. 2. Click **Create API key**. 3. Enter a **name** for the key. 4. Choose the **portal role** the key should carry. 5. Choose the **content role** the key should carry, and if it's not "None," choose its **content-access scope** — the entire project, or specific workspaces/languages, or specific categories. 6. Optionally, set an **expiry date**. Leave it as "Never" for a key that doesn't expire. 7. Optionally, expand **Advanced** to set the **Access validity limit for drive assets** (15 minutes to 36 hours) — this controls how long signed drive-asset URLs stay valid when this key is used, separately from the key's own expiry. 8. Click **Generate key**. **Copy the secret now** - it's shown only once and can't be retrieved again. ![](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Add%20api%20key%20page.png) NOTE A key's access can never exceed what the account creating it holds. If you request a role or content scope beyond your own access, the request is rejected with the error message: "Access denied: you are denied access to some content in this project, so you cannot grant a token access to the entire project." --- ### Sending an API key ``` GET /v3/projects/{projectId}/articles X-API-Key: d360_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` Also accepted as `Authorization: Bearer d360_sk_...`, so a client that already has a Bearer-header code path can reuse it unchanged. ## Deleting an API key 1. Navigate to Settings (gear icon) > Knowledge base portal > API keys. 2. Hover over the key you want to remove. 3. Click the Delete icon. 4. Confirm the deletion. Deleting a key is permanent and cannot be undone. If you only need to stop a key from authenticating but may want to use it again later, disable it instead of deleting it. Disabling does not free up a slot in your plan's active-key quota. Only deleting a key does. ## Security properties - Your secret is shown only once, right when you create the key. After that, Document360 stores only a hash of it, so it can't be recovered from the portal. If you lose it, you'll need to create a new key. - Each key can still be identified by a masked value showing its last 4 characters, so you can tell keys apart without exposing anything usable as a credential. - **Disable** immediately stops a key from authenticating, but doesn't delete it. You can **re-enable** it again at any time. **Delete** removes the key for good, and this can't be undone. - Document360 tracks when each key was last used, so you can find and retire keys that nobody's calling anymore. - A key's role and content access aren't locked in once it's created. Open its **Edit** dialog whenever you need to change them. You don't have to delete and recreate a key just to adjust its scope. - Your plan's active-key quota is shared across API keys and API tokens. Disabling a key does not free up a slot. Only deleting one does. Two portal permissions control who can do what here. **View API keys** lets someone list and inspect keys, but never see the secrets. **Manage API keys** lets someone create, edit, enable or disable, and delete keys. --- ## Rate limits Each API key and API token has separate **read** and **write** rate-limit buckets, so a read-heavy job can't use up the allowance a write job needs. API tokens (v2) use the same limits as API keys (v3). | Bucket | HTTP methods | | --- | --- | | Read | GET | | Write | POST, PUT, PATCH, DELETE | Limits are measured in requests per minute and depend on your plan. Some projects have custom limits agreed with Document360. To see the limits for your project: 1. Navigate to **Settings** () > **Knowledge base portal** > **API keys**. 2. Hover over or click **View rate limit**. A popover shows the read and write limits for your project. If you clicked, the popover stays open until you close it. ![View rate limit popover on the API keys page showing the read limit for GET requests and the write limit for POST, PUT, PATCH, and DELETE requests, in requests per minute.](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/view-rate-limit.png) Successful responses also carry the `X-RateLimit-Limit` and `X-RateLimit-Remaining` headers. Requests over the limit return `429 Too Many Requests`. For the standard limits on each plan and how to handle a `429` response, see [Understanding rate limiting](https://apidocs.document360.com/apidocs/understanding-rate-limiting). In addition to this per-key/per-token rate limit, all requests are also subject to Document360's IP-based fair usage policy, which is enforced independently at the network layer. See [Fair usage policy for bot management](/help/docs/fair-usage-policy-for-bot-management) for those limits. --- ## Best practices - **One key per integration**, so you can disable or delete one without affecting others. - **Apply least privilege**: grant only the portal role, content role, and content scope the integration actually needs. - **Set an expiry where practical**, especially for short-lived or trial integrations. - **Review keys periodically** and retire ones that are no longer used. - **Label keys clearly**: e.g., "Analytics – Read Only," "CMS Sync – Write." - **Use Edit, not recreate, when scope needs to change.** If you do need a brand-new secret, for example, after a suspected leak, create the replacement key before deleting the old one, so the integration isn't interrupted in between. --- ## FAQ **Can I change a key's role or content scope after creating it?** Yes. Open the key's **Edit** dialog to change its name, portal role, content role and access, or expiry. You don't need to delete and recreate the key to change its scope. **What's the difference between disabling and deleting a key?** Disabling immediately stops a key from authenticating, but keeps it in your list so you can re-enable it later — and it does not free up a quota slot. Deleting removes the key permanently, can't be undone, and does free a quota slot. **What happens if I don't set an expiry?** The key doesn't expire on its own. You can still disable or delete it at any time. **What if I need more API keys than my plan allows?** If you have billing access, click **Buy more** next to the keys-used count on the **API keys** page to request additional keys. The Document360 team will follow up with you. You can send one request every 24 hours. You can also free up a slot by deleting keys you no longer use. Disabling a key doesn't free a slot. **Do API tokens (v2) have different rate limits from API keys (v3)?** No. API tokens and API keys use the same read and write limits for your plan. Click **View rate limit** on the **API keys** page to see them. ## API tokens (v2) NOTE API tokens (v2) only appear for projects that already had them before API keys (v3) launched. If your project's **API keys** page shows no tabs, this credential type isn't available to you — use an **API key** instead (see above). An API token is Document360's original credential — a single, project-wide token restricted only by HTTP method, with no role or content scoping. It still works, and existing integrations built on it aren't affected by anything above. For any new integration, use an **API key** instead (see above). --- ### How to create an API token 1. Navigate to **Settings** () > **Knowledge base portal** > **API keys**. 2. On the **API keys** page, click **Create API key** and choose **API v2 — Legacy API keys with unrestricted access (we recommend migrating to v3)** from the dropdown. The **Add API token** dialog appears. 3. Enter a **name** for the token. 4. Select one or more HTTP methods to allow: [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET), [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST), [PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT), [DELETE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE). 5. Optionally, expand **Advanced** and set the **access validity limit for drive assets** (15 minutes to 36 hours). 6. Click **Add**. NOTE An API token can't be restricted to specific articles or categories, can't carry a role, and can't expire on its own — only its drive-asset access validity is configurable. If you need any of that, create an API key instead. ### Sending an API token The token is sent the same way an API key is — as a header on each request. Unlike a key, it's visible in the portal any time after creation. --- ### FAQ **Do I have to move off my API token?** Not immediately, but you should plan to. Document360 recommends moving to API keys (v3) now, for both new and existing integrations. Over time, and with advance notice, remaining API token (v2) integrations will be migrated to API keys and the v2 credential will be retired. No cutover date has been set yet — when one is, it will be communicated well ahead of time. **Can I restrict an API token to specific articles or categories?** No — only by HTTP method. For anything narrower, create an API key instead. **How can I increase the drive asset access validity for private and mixed projects?** Edit or create the token, expand **Advanced**, and set the access validity limit. Default is 15 minutes; maximum is 36 hours.