
# Disconnecting and reconnecting

You can replace a token, restore event reception, or disconnect Kommo in “Settings → Integrations.” When you disconnect, Auri deletes the token, removes its webhook, and stops the AI, but keeps all conversations, deals, and company settings.

## Who this is for and when to use it

For company owners or administrators when a token is expiring, the connection to Kommo has been lost, you need to change the sending user, or you want to temporarily stop exchanging data with Kommo.

## Before you begin

- Make sure you have the “Owner” or “Administrator” role in Auri and administrator permissions in the same Kommo account.
- If you are replacing a token or reconnecting, make sure you have access to Kommo so you can generate a new long-lived token.

### Which action to take and when

| Status in “Settings → Integrations” | What happened | What to do |
| --- | --- | --- |
| “Active” with a “Token expires …” warning | The token expires in 30 days or less | Click “Replace token” and paste a new one—you do not need to disconnect Kommo |
| “Reconnect required” | The token has expired or been revoked, or the integration was deleted in Kommo. AI and message reception are stopped; the owner and administrators receive an email | Generate a new token in Kommo and click “Replace token” |
| “Account payment required” | The Kommo account’s subscription has expired, and writing is disabled | Renew the subscription in Kommo, then click “Refresh data” (or wait—Auri checks whether writing is available once an hour) |
| “Error” or a “Kommo is denying Auri access — requests are paused until …” banner | The token’s user has lost administrator permissions, or an IP restriction in Kommo is blocking access | Check permissions in Kommo, then click “Refresh data” or replace the token |
| Under “Event delivery”: “Check required,” “Not subscribed,” “Kommo disconnected,” or “Error” | The webhook was removed or disabled by Kommo, or no events have arrived for more than a day | Click “Restore event delivery” (the button appears when event reception needs to be restored) |
| “Disconnected” | The connection was manually disconnected in Auri or from Kommo | Reconnect the same account using the form on the “Settings → Integrations” page |

## What to do

### Replace the token without disconnecting

Use this when the token is about to expire, you need to reconnect the account, or you need to change the user in the “AI replies as” row.

1. In Kommo, open your Auri integration’s details, go to the “Keys and access” tab, and generate a new long-lived token under the desired administrator user. Copy it right away.
2. In Auri, open “Settings → Integrations.”
3. In the Kommo card, click “Replace token.”
4. Paste the new token into the “Long-lived token” field and click “Replace.” Auri will check access, refresh reference data, and resubscribe the webhook; conversations, deals, and settings will be preserved.

> [!NOTE]
> Replacing the token does not restart the “Previous conversations” import.

### Disconnect Kommo

1. Open “Settings → Integrations.”
2. In the Kommo card, click “Disconnect.”
3. In the “Disconnect Kommo?” confirmation dialog, click “Disconnect.”
4. Auri will remove its webhooks in Kommo, delete the token, and stop the AI and workflows for this account. If the token is already invalid and the webhook could not be removed automatically, Auri will display a warning—delete the Auri webhook manually. Auri no longer accepts events from it.

### Reconnect an account after disconnecting

1. Open “Settings → Integrations.” The connection card shows the “Disconnected” status and the previous account’s address.
2. Generate a new long-lived token for **the same** Kommo account (if public connection is enabled for your installation, click “Connect Kommo” and authorize access on the Kommo page).
3. When connecting with a token, paste it into the “Long-lived token” field—the “Account address” field is already filled in with the previous address.
4. If needed, select an “Import period” in the “Previous conversations” section and click “Connect.”

## How to check the result

- After replacing the token or reconnecting, the Kommo card’s status is “Active,” and the “Event delivery” status is “Active.”
- The “Token valid until” row shows the new date, and the “Kommo data updated” row shows a recent time.
- Your previous chats, deals, and workflows are still there.
- After disconnecting, the card shows the “Disconnected” status, and new messages from Kommo no longer arrive in Auri.

## Limitations and what is not yet available

- **One account per company.** After disconnecting, you can reconnect only the same Kommo account to this Auri company. To connect a different account, create a separate company in Auri.
- You cannot connect one Kommo account to two Auri companies at the same time.
- If other integrations are using all 100 webhooks in the Kommo account, Auri will not be able to subscribe to events. Delete unnecessary webhooks in Kommo and click “Restore event delivery.”
- Emails about required reconnection and token expiration reminders (30 and 7 days in advance) are sent only to the company’s active owner and administrators. No email is sent when you manually disconnect using the “Disconnect” button.
- If the connection or event reception error keeps recurring, email `support@auricrm.app`.
