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

# API keys

> Create workspace API keys with the permissions your integration needs.

API keys authenticate the [public API](https://hebeat.com/docs/api-reference/introduction.md) for one workspace. Manage them in **Developers → API keys**. API keys are available on every plan.

## Create a key

1. Click **Create API key** and give it a name.
2. Choose its permissions:
   * **Read only**: read every resource.
   * **Read & write**: read and change every resource.
   * **Custom**: choose read or write per resource. Write includes read.
3. Optionally set an **expiration date**.

Which permissions you can choose depends on your [role](https://hebeat.com/docs/knowledge-base/workspaces-and-members.md#roles). A key never has more access than the person who created it: members can create keys with the scopes their role holds, viewers only read scopes, and the Billing role can't create keys.
4\. Copy the key. It is shown only once.

> [!WARNING]
>
> Treat an API key like a password. Don't share it publicly, commit it to Git or use it in client-side code. If it is exposed, revoke it and create a new one.

## Permissions

| Resource | Read | Write |
| - | - | - |
| Monitors | `monitors:read`: list monitors and their results | `monitors:write`: create, edit and delete monitors |
| Status pages | `pages:read` | `pages:write` |
| Incidents | `incidents:read`: list incidents | `incidents:write`: acknowledge, resolve and mark incidents as duplicates, change their severity and assignee |
| Notifications | `notifications:read`: list notification channels | `notifications:write`: create, edit and test channels |
| Subscribers | `subscribers:read` | `subscribers:write` |

The operations of each endpoint and the scope they need are listed in the [API reference](https://hebeat.com/docs/api-reference/authentication.md#scopes). Workspace settings, members, invitations, billing and API keys themselves can't be managed with an API key.

## Manage keys

* Each key shows when it was **last used** and whether it is **active**, **expiring soon** or **expired**.
* **Rotate** a key to get a new secret; the previous one stops working immediately.
* **Revoke** a key to stop it for good.
* Owners and admins see and manage every key of the workspace; other people see and manage only their own.
* A key belongs to the person who created it, and it is always limited to what that person's role allows right now. If their role is reduced, the key narrows immediately. If they are promoted again, it widens again, up to the scopes it was created with. If they move to the Billing role, their keys stop working until they get a role that can hold keys. Rotating a key keeps its original creator, so an admin rotating someone's key doesn't raise it.
* `GET /me` shows the effective scopes of the key.
* A key belongs to the person who created it. When they leave the workspace, are removed from it or delete their account, their keys are revoked automatically.

Rotating and revoking ask you to type a confirmation keyword.

Each key pins the API version that was current when it was created. See [Versioning](https://hebeat.com/docs/api-reference/versioning.md).


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