# API keys

> Create provider REST API keys, select their abilities, copy a new key and manage or revoke existing keys in Integration → API.

Canonical: https://komashi.com/docs/provider/Settings/10api/
Language: en

Open your provider's **Control Center → Integration → API**. The **API Keys** page manages credentials for REST integrations with that provider. For AI assistants, use the separate [OAuth MCP connection](https://komashi.com/docs/provider/Developers/mcp-integration/index.md).

Video (English narration): [API keys](https://www.youtube.com/watch?v=NsTGVXPOLRk)

[![API Keys page with the endpoint, reference link and existing key permissions](https://komashi.com/docs/assets/images/integrations-api-keys.png)](/assets/images/integrations-api-keys.png)

## Find the documentation and endpoint

At the top of the page:

- **Documentation** opens the interactive API reference.
- **API endpoint** displays the base URL to use for REST requests, including `/v1`.

Use these values from your environment. The local endpoint shown in a screenshot is an example, not the public endpoint to copy into a production integration.

## Create a key

1. Click **New API Key**.
2. Enter a **Key Name** that describes the integration, such as `Billing sync — production`.
3. Select its permissions.
4. Click **Create Key**.
5. Copy the generated value and store it in the integration's backend secret configuration before closing the dialog.

The full key is displayed only immediately after creation. The list does not reveal it later. If you lose it, create a replacement and update the integration.

## Choose permissions

New keys start with **Read** selected.

| Permission | Examples |
| --- | --- |
| **Read** | List services and customers, read invoices, check usage. |
| **Create** | Create customers, contacts or subscription checkout records. |
| **Update** | Update records, synchronize or adjust usage, change plans, cancel subscriptions. |
| **Delete** | Delete supported resources such as customers or contacts. |

Abilities follow the operation's requirements. For example, subscription cancellation uses the Update ability even though its HTTP method is DELETE.

:::caution[Keep at least one permission selected]
In the current key form, saving an empty permission selection gives the key **Full access**. It does not create a key with no access. Select the exact abilities you need and check the badges in the list afterward.
:::

Use a separate key for each backend integration so that replacing or deleting one key does not interrupt unrelated systems.

## Manage an existing key

The list shows the key name, permissions, last-used time, creation time and action buttons. **Not used yet** means no use has been recorded for that key; it does not reveal whether the integration is configured correctly.

To change abilities, click the **gear** action for the intended key, update the selection, and save. This changes what the existing key can do; check the permissions again after saving.

## Replace or revoke a key

To replace a key without an unnecessary outage:

1. Create a replacement with the required abilities.
2. Update the backend integration's secret configuration.
3. Confirm that the integration works with the new key.
4. Click the old key's **trash** action and confirm **Delete key**.

Deletion revokes the key permanently. Requests using it will no longer authenticate. This only affects that provider REST key; account-level MCP connections are managed in **Settings → MCP**.

## First request

Follow [REST API integration](https://komashi.com/docs/provider/Developers/api-integration/index.md) for a `GET /services` example, response handling and the current endpoint inventory.
