> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vibraniumlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API Key Management

API keys allow you to authenticate with the Vibe OnCall Public API and integrate with external systems without relying on user sessions. Each key is scoped to your organization and should be treated as a secret credential.

***

### Who Can Manage API Keys

The **API Keys** page is available to roles that hold the **Manage API keys** permission. Members without it don't see the page. Grant it from **Administration → Roles** when you want someone other than an admin to create, edit, or revoke keys (See [Roles and permissions](https://docs.vibraniumlabs.ai/administration/roles-and-permissions.md) ).

***

### Creating an API Key

1. Navigate to **Administration → API Keys**.
2. Click **Create API Key**.
3. Enter a descriptive **Name** that identifies the integration this key will be used for (e.g., *CI/CD Pipeline*, *Monitoring Script*). Optionally add a **Description** of what the key is for.
4. Choose an **Expiration** — **7 days**, **30 days**, **90 days**, **1 year**, a **Custom** date, or **No expiration**. An expiring key stops authenticating at the end of that day.
5. Choose an **Access** level — **Full access**, **Read-only**, or **Custom**. You must pick one; see [Choosing What a Key Can Do](https://docs.vibraniumlabs.ai/api/api-key-management.md#choosing-what-a-key-can-do) below.
6. Click **Create API Key** and **copy the key immediately** — it is displayed only once and cannot be retrieved after you close the dialog.

API keys use the format `vlk_` followed by 40 hex characters (e.g., `vlk_a1b2c3d4e5f6...`).

![](https://mintcdn.com/vibranium-labs/z6cYEzz6lasH-USn/images/api/0.png?fit=max\&auto=format\&n=z6cYEzz6lasH-USn\&q=85\&s=10193eebbc794127e2ba595ff885b80a)

***

### **Choosing What a Key Can Do**

Every key has an **Access** level that limits what it can do. Give each integration only the access it needs.

| Access | What the key can do |
| - | - |
| **Full access** | View data and make any change, including in features we add later. |
| **Read-only** | View data. It can't view alert sources, make changes, or ping heartbeats. |
| **Custom** | View data, and make only the changes you choose. Select at least one action, such as commenting on incidents, **Manage alert routing**, or **Ping heartbeats**. Alert sources can be viewed only by a key with **Manage alert sources**. |

***

### Using an API Key

Include the key in the `Authorization` header of all API requests:

```txt theme={null}
Authorization: Bearer vlk_your_api_key_here
```

A request made with a revoked or expired key is rejected with `401 Unauthorized`. See [Public API Reference](https://docs.vibraniumlabs.ai/api/public-api-reference.md) for available endpoints and usage examples.

***

### Managing Keys

Navigate to **Administration → API Keys** to view all keys for your organization. For security, only the key prefix is shown after creation — the full key is never displayed again.

Keys are split into two views:

* **Active** — keys that can still authenticate.
* **Inactive** — keys you revoked and keys past their expiry, most recently ended first.

To find a key, search by name or prefix.

#### Active Keys

![API Key01](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/APIKey01.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=aad2d88653039bd86a199b4334890f7a)

| Column | What it shows |
| - | - |
| **Name** | The key's name and the description you gave it, if any |
| **Key** | The start of the key (its prefix), so you can tell keys apart |
| **Access** | **Full access**, **Read-only**, or **Custom**. A Custom key also shows how many actions it allows; hover over the count to see which. |
| **Expires** | The expiry date, or **Never**. In the last week, a countdown appears so you can extend the key in time. |
| **Last Used** | The most recent request made with it |
| **Created by** | Who created it |
| **Action** | **Edit** — Change its name, description, expiration or access before it expires. You can push the expiry later or switch it to **No expiration**. **View requests** — Jump to the [Request Log](#request-log) filtered to this key, to see what it has been calling and from where. **Rotate** — Replace the key with a new one while the old one keeps working for a grace period. See Rotating a Key below. **Revoke**— If a key is compromised or no longer needed, revoke it immediately from the API Keys list. Revoked keys stop working instantly, and revocation cannot be undone. |

#### Inactive Keys

![API Key02](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/APIKey02.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=e8227a3eb8577a746df2bb855dd9b5f3)

| Column | What it shows |
| - | - |
| **Name** | The key's name and the description you gave it, if any |
| **Key** | The start of the key (its prefix), so you can tell keys apart |
| **Status** | Whether the key was **Revoked** or **Expired** |
| **Inactive since** | The date the key was revoked or expired |
| **Rotated to** | The key that replaced it, if you rotated it |
| **Last Used** | The most recent request made with it |
| **Created by** | Who created it |
| **Action** | **Edit** — Change its name and description. Access and expiration are locked. **View requests** — Jump to the [Request Log](#request-log) filtered to this key, to see what it has been calling and from where. **Rotate** and **Revoke** aren't available for an inactive key. |

***

### Rotating a Key

Rotating replaces a key with a new one that has the same name, description, and access, and lets the old key keep working for a grace period so you can update your integration without an outage.

1. On **Administration → API Keys**, find the key and click **Rotate**.
2. Under **Current key expires**, choose how long the old key keeps working: **Now**, **In 1 hour**, **In 24 hours**, or **In 7 days**.
3. Under **New key expires**, choose an expiration for the new key.
4. Click **Rotate Key** and **copy the new key immediately** — it is displayed only once.
5. Update your integration to use the new key. Once the old key's grace period ends it stops authenticating and moves to **Inactive**.

Other details worth knowing:

* The new key can't expire before the old key does.
* To end the grace period early, revoke the old key.
* An expired key can't be rotated, and neither can a key whose old key is still in its grace period.

***

### Request Log

Open the **Requests** tab on the API Keys page (or click **View requests** on a key) to see every request made with your keys, newest first.

| Column | What it shows |
| - | - |
| **Time** | When the request was made |
| **Key** | Which key made it |
| **Endpoint** | HTTP method and path; for MCP calls, the tool that was invoked |
| **Status** | The HTTP status code returned |
| **IP address** | Where the request came from |
| **User agent** | The client that sent it |

Every request authenticated with one of your keys is recorded — including ones rejected with `401` because the key was revoked or expired. That makes the log the quickest way to answer two questions:

* **Is this key still in use?** Filter by **Key** and check whether anything has come in recently before you revoke it.
* **Is something still using a key I retired?** Filter **Status** to `4xx` — a stream of `401`s from one IP or user agent points straight at the integration you forgot to update.

![API Key03](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/APIKey03.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=fa6b5dc7436f974761afbf84ba27dc4e)

***

### History

Open the **History** tab on the API Keys page to see every change made to your keys: creating, renaming, changing the expiry or Access, rotating, and revoking. Each entry shows who made the change and when, and you can filter by key. Revoked keys stay in the history.

***

### Best Practices

* Create separate keys for each integration rather than sharing a single key across systems.
* Give every key an expiration. It is easier to extend a key you still need than to find one that should have been retired.
* Rotate keys periodically: create a new key, update the integration, confirm in the **Request Log** that the old key has gone quiet, then revoke it.
* Revoke any keys that are no longer in active use — **Last Used** tells you which ones those are.
* Never commit API keys to version control or share them in plain text (e.g., in Slack messages or documentation).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.