Integration keys
Integration keys are API keys that belong to your workspace and are sent in the X-API-Key header. The channels you can turn on today don’t need one: each is verified with its platform’s own mechanism. Google Chat still needs your Google Cloud project number, as explained below.
Manage them under Manage > Integrations. This requires settings.manage.
How each channel is verified
Section titled “How each channel is verified”Every way in is verified with the platform’s own mechanism, and doesn’t use integration keys whether enforcement is on or off:
| Channel | How VirtuAI verifies it |
|---|---|
| Google Chat | Google’s token, checked against your Google Cloud project number (GOOGLE_CHAT_PROJECT_NUMBER) |
| Slack | The Slack app’s signing secret |
| Telegram | The secret VirtuAI generates when you register the webhook |
| Web chat | A signed-in member of the workspace |
| A2A | The client’s own credentials, created on the A2A Clients card in Settings, under SSO, A2A and CLI |
Key Enforcement
Section titled “Key Enforcement”New workspaces start with enforcement on. The Key Enforcement toggle sets the INTEGRATION_KEYS_ENFORCED workspace setting, which Settings also shows under Channels as Require integration API keys.
If Google Chat requests are rejected with 401 · Unauthorized, check that the workspace’s Google Cloud project number is set and matches your Chat app. Set GOOGLE_CHAT_PROJECT_NUMBER as described in Google Chat.
Managing keys
Section titled “Managing keys”To create a key, open Integrations. Under Create New Key, enter a name that says where the key is used and select Create. Copy the key from Copy Your API Key. It’s shown only once: VirtuAI stores a hash, not the key.
The API Keys list shows every key with its name, its status (Active or Revoked), its Prefix and when it was Last used. The prefix, such as via_1a2b3c4d, is the start of the key, so you can tell which key a connection uses without seeing the secret. Last used is updated at most every five minutes.
- A workspace can have up to 5 active keys. Names must be unique among active keys.
- A key only works for the workspace that created it.
- Revoke takes effect immediately and can’t be undone.
Rotating a key
Section titled “Rotating a key”There’s no rotate button, so rotate by overlapping two keys:
- Create a new key.
- Update whatever uses the key to send the new one, and check that it still connects.
- Revoke the old key.
Revoke a key as soon as you suspect it has leaked, and whenever someone who had it leaves.
