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

# Bitwarden

> Monitor organization events including logins, policy changes, and user activity across your Bitwarden organization

The Bitwarden integration allows you to ingest security-relevant events from your Bitwarden organization, including:

* **User authentication**: Track successful and failed login attempts, password changes, and two-factor authentication events
* **Vault activity**: Monitor item creation, access, and modifications
* **Organization management**: See user invitations, role changes, and policy updates
* **Secrets Manager events**: Track access to secrets, projects, and machine accounts

## Prerequisites

Before setting up this integration, ensure you have:

1. A Bitwarden Teams or Enterprise organization
2. Owner privileges in your Bitwarden organization
3. Access to the Bitwarden Admin Console

<Note>
  The Bitwarden Public API is available for Teams and Enterprise organizations only.
</Note>

## Step 1: Obtain Your Organization API Key

1. Sign in to your [Bitwarden Web Vault](https://vault.bitwarden.com/)
2. Open the **Admin Console** using the product switcher
3. Navigate to **Settings** → **Organization info**
4. Scroll down to the **API key** section
5. Click **View API Key** (you may need to re-authenticate)
6. Copy both the **client\_id** and **client\_secret**

<Warning>
  Your organization API key provides full access to your organization. Keep it private and store it securely. If you believe it has been compromised, use the **Rotate API key** button to generate a new one.
</Warning>

## Step 2: Identify Your Server URLs

Bitwarden uses different server URLs based on your hosting option and region:

### Cloud-Hosted (US)

| Server Type     | URL                              |
| --------------- | -------------------------------- |
| API Server      | `https://api.bitwarden.com`      |
| Identity Server | `https://identity.bitwarden.com` |

### Cloud-Hosted (EU)

| Server Type     | URL                             |
| --------------- | ------------------------------- |
| API Server      | `https://api.bitwarden.eu`      |
| Identity Server | `https://identity.bitwarden.eu` |

### Self-Hosted

| Server Type     | URL                                |
| --------------- | ---------------------------------- |
| API Server      | `https://your.domain.com/api`      |
| Identity Server | `https://your.domain.com/identity` |

<Tip>
  If you're unsure which region you're on, check your Bitwarden sign-in URL. US users typically sign in at `vault.bitwarden.com`, while EU users sign in at `vault.bitwarden.eu`.
</Tip>

## Step 3: Add the Integration in Wirespeed

1. Log in to Wirespeed and navigate to Integrations > [**Add Integration**](https://app.wirespeed.co/settings/integrations?tab=browse)
2. Search for and select **Bitwarden**
3. Enter the following information:
   * **API Server URL**: The API server URL from Step 2
   * **Identity Server URL**: The identity server URL from Step 2
   * **Client ID**: The client\_id from Step 1
   * **Client Secret**: The client\_secret from Step 1
4. Click **Integrate** to complete the setup

## What Events Are Collected?

### User Events

Authentication and account-related events:

* Successful and failed login attempts
* Password changes
* Two-step login enable/disable
* Account recovery events
* Device approval requests

### Item Events

Vault item activity:

* Item creation, editing, and deletion
* Viewing passwords, hidden fields, and security codes
* Copying credentials
* Autofill usage
* Attachment management

### Collection & Group Events

Organizational structure changes:

* Collection creation, editing, and deletion
* Group management

### Organization Events

Administrative actions:

* User invitations, confirmations, and removals
* Role and group assignments
* SSO configuration changes
* Policy modifications
* Organization settings updates
* Vault exports and purges

### Secrets Manager Events

For organizations using Bitwarden Secrets Manager:

* Secret access, creation, editing, and deletion
* Project management
* Machine account changes

## Troubleshooting

### Authentication Errors

If you see authentication errors:

1. Verify your client\_id and client\_secret are correct
2. Ensure you're using the correct API and Identity server URLs for your region/hosting
3. Check that your API key hasn't been rotated since setup

### No Events Appearing

If events aren't showing up:

1. Events may take a few minutes to appear after initial setup
2. Verify that activity is occurring in your Bitwarden organization
3. Ensure your organization has an active Teams or Enterprise subscription

### Rate Limiting

The Bitwarden Public API has rate limits. If you encounter rate limiting:

1. Wirespeed will automatically retry with exponential backoff
2. Events will be collected on the next sync cycle

## Additional Resources

* [Bitwarden Public API Documentation](https://bitwarden.com/help/public-api/)
* [Bitwarden Event Logs](https://bitwarden.com/help/event-logs/)
* [Bitwarden API Specification](https://bitwarden.com/help/api/)
