> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/global-settings/integration/api-key-management.md).

# API Key Management

How to find and create the API keys that give other systems access to DocBits

An API key lets another system — your ERP, a script, or a partner application — talk to DocBits without a user logging in. Your organization can hold as many keys as you need, and each one is managed separately: give it its own name, decide whether it expires, and revoke it on its own if it is ever exposed.

Because each integration can have its own key, you can switch one off without disturbing any of the others.

## Opening API key management

Go to **Settings** and select **Integration & SSO** under **System & Administration**.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-6bcd547b133f8405076b98397a3e10aa96ecdff2%2Fprior-t020-en.png?alt=media" alt="Access to API-key management."><figcaption><p>Access to API-key management.</p></figcaption></figure>

The **API Key** section at the top of the page lists every key your organization has.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-df6de79ef2168c5799d8ecf422dbcacfcb88b848%2Fprior-t017-en.png?alt=media" alt="API-key list with keys and associated names hidden."><figcaption><p>API-key list with keys and associated names hidden.</p></figcaption></figure>

## Understanding the list

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-f50b6a8934cca12c04b48cdfed5f6c792d0aa6b8%2Fs150-api-key-list-row.png?alt=media" alt="API key list with keys and account details hidden."><figcaption><p>API key list with keys and account details hidden.</p></figcaption></figure>

| Column        | What it tells you                                                                                                                                             |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Key**       | The first few characters of the key, followed by `****`. The rest is never shown again after you create it — see [Creating an API key](#creating-an-api-key). |
| **Name**      | The name you gave the key, with its description underneath.                                                                                                   |
| **Expires**   | The date the key stops working, or **Never** if you did not set one.                                                                                          |
| **Last Used** | When a request last arrived with this key. **Never used** means no system has used it yet — useful for spotting keys you can safely remove.                   |
| **Status**    | **Active** means the key works. A revoked key is switched off permanently.                                                                                    |
| **Actions**   | The three-dot menu, where you can revoke the key.                                                                                                             |

If you have more keys than fit on one page, use the paging controls at the bottom of the list.

{% hint style="info" %}
**Last Used** is the quickest way to find keys nobody needs any more. A key that has never been used, or has not been used in months, is a good candidate for revoking.
{% endhint %}

## Creating an API key

1. Click **+ Create API Key** at the top right of the API Keys section.
2. Fill in the dialog:

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-54a81fe8aa6810d0ddcdcff772b9506b642ff6c1%2Fprior-t018-en.png?alt=media" alt="Create API key dialog before saving."><figcaption><p>Create API key dialog before saving.</p></figcaption></figure>

| Field           | What to enter                                                                                                                                              |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Key Name**    | Required. Name it after the system that will use it — `M3 Production`, `Invoice Import Script` — so you can tell later which integration a key belongs to. |
| **Description** | Optional. Room for a note about what the key is for or who set it up.                                                                                      |
| **Expiration**  | Choose an expiry date, or leave it on **Never expires**. An expiry date is the safer choice: the key retires itself if the integration is ever forgotten.  |

3. Click **Create**. DocBits shows you the new key:
4. Copy the key with the copy icon and paste it straight into the system that will use it, or into your password manager.
5. Tick **I have copied and saved this key** and click **Done**.

{% hint style="danger" %}
**The full key is shown only once.** DocBits stores a one-way hash of the key and a short identifying prefix. Neither your administrators nor DocBits support can retrieve the original full key from that hash. If you lose it, revoke the key and create a new one.
{% endhint %}

Treat the key like a password. Anyone who has it can act on your organization's documents and data.

For password hashing, TLS, vendor visibility, and the distinction between DocBits keys and credentials for connected systems, see [Secure Storage of Credentials](https://docs.docbits.com/security/secure-storage-of-credentials.md).

The complete API key is shown only once after creation. Copy it into approved secure storage, confirm that it has been saved, and close the dialog. The key list shows its identifying information rather than revealing the complete secret again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/integration/api-key-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
