Manage a Bitwarden organization: members, groups, collections, policies, event logs, subscription limits and directory import.
Bitwarden ships in the w6w first-party pack. It declares 28 actions, 1 health check, and the host runs its code in a sandbox that never sees the credential.
io.w6w.bitwardenBitwarden is an open-source password manager, and its organization Public API is how a company runs it as part of the rest of its people operations. This app covers that API end to end: inviting, updating, revoking, restoring and removing members; creating and maintaining groups and their membership; assigning collection access; reading and changing the organization’s policies; and reading the audit event log.
It is built for onboarding and offboarding workflows and for compliance reporting: provision a new hire into the right groups, revoke a leaver the moment HR closes the record, enforce a policy such as two-step login or a minimum master-password length, or pull the last day’s events into a log store. Bulk directory import and seat and autoscale limits are included for teams that sync from an identity provider.
It authenticates with the organization API key (client id and secret) on the US or EU cloud, and refreshes its one-hour access token itself. It does not touch vault items: reading or editing passwords is the separate Vault Management API, which runs locally through the Bitwarden CLI rather than as a hosted service.
Three routes to the same 28 actions. The Workflow tab is generated from Bitwarden's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
collection-delete Permanently delete a collection. Items in it are not deleted. Bitwarden answers an empty 200, and 404 if the id is unknown (including a repeat delete).
collection-get Retrieve one collection and its group assignments. A collection has no name field in this API: names are end-to-end encrypted, so only the id and `externalId` are visible.
collection-list Every collection in the organization with the groups assigned to each. The spec documents NO pagination parameter and no continuation token for this endpoint (the prose guide claims one; the OpenAPI document does not), so this returns whatever the API sends in one response.
collection-update Set a collection's `externalId` and its group assignments. This is a PUT, not a PATCH, and the spec does not say omitted fields are preserved — send the full set of `groups` you want the collection to end up with. Collections cannot be created through the Public API (the spec has no POST), only updated and deleted.
event-list The organization's event log. Filter by date range (ISO 8601; `start` must be before `end`), acting user or related item/secret/project. Results come in pages (about 50) with a `continuationToken`; set `maxPages` above 1 to follow it. Events are the only list endpoint the OpenAPI document gives a continuation token.
group-create Create a group. Names are limited to 100 characters, `externalId` to 300.
group-delete Delete a group. Its members stay in the organization. Empty 200 on success; 404 if unknown.
group-get Retrieve one group with its collection assignments. Member ids are a separate call (`group-member-ids-get`).
group-list Every group in the organization with its collection assignments. No pagination parameter is documented for this endpoint.
group-member-ids-get The organization-scoped member ids (`id`, not `userId`) of everyone in a group.
group-member-ids-set REPLACE the full membership of a group with the given member ids. Anyone not listed is removed from the group. Empty 200 on success.
group-update Replace a group's name, `externalId` and collection assignments. A PUT: the spec documents no partial update, so send the complete `collections` list you want kept.
member-create Invite someone to the organization by email, as Owner (0), Admin (1), User (2) or Custom (4 — then set `permissions`). There is no type 3. The member starts as Invited and must accept and be confirmed before they have access.
member-get Retrieve one member. `id` is organization-scoped; `userId` is the person's account-wide id.
member-group-ids-set REPLACE the full set of groups a member belongs to. Groups not listed are left. Empty 200 on success.
member-list Every member of the organization with role, status and collection access. Includes invited, revoked and staged members — check `statusName`. No pagination parameter is documented.
member-reinvite Send a pending member their invitation email again. Fails with 400 if the member is not in the Invited state. Sends an email each call.
member-remove Remove a member from the organization (their account is untouched). Different from revoke: a removed member must be re-invited, a revoked one can be restored. Empty 200 on success.
member-restore Restore a revoked member's access. 400 if the member is not revoked.
member-revoke Suspend a member's access to the organization without removing them; reverse with `member-restore`. 400 if the member is already revoked or is an owner you cannot revoke.
member-update Change a member's role, `externalId`, permissions, collection access or group membership. A PUT with `type` required; the spec does not say omitted `collections`/`groups` are preserved, so send the complete sets you want kept.
organization-import Bulk-provision members and groups from an external directory. `overwriteExisting` is required: when true the request replaces the organization's existing data rather than appending, so a partial list can remove people — default is false. Each member needs `externalId`; `email` is required unless `deleted` is true. Set `largeImport` for more than 2000 users/groups.
policy-get One policy by its numeric type. `data` is a free-form object whose shape depends on the type.
policy-list Every policy type with whether it is enabled and its per-type `data`. Names are added as `typeName`.
policy-update Enable or disable a policy and set its per-type `data`. `enabled` is required. `data` is free-form and its shape depends on the type (for example MasterPassword takes minimum complexity and length).
subscription-get Seat, storage and autoscale limits for Password Manager and Secrets Manager. Any field may be null (not applicable to the plan).
subscription-update Change seat counts, storage and autoscale ceilings. THIS CHANGES BILLING. Only the fields you set are sent, but whether Bitwarden treats an omitted field as unchanged or as cleared is not documented — set every value you care about.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying Bitwarden's real ids.
{
"manifestVersion": "2",
"name": "bitwarden-example",
"steps": [
{
"id": "collection-get",
"uses": {
"app": "io.w6w.bitwarden",
"action": "collection-get",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"collectionId": "<collectionId>"
}
}
]
}collection-get collection-list collection-update event-list group-create +23 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for Bitwarden, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to Bitwarden. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "collection-get",
payload: {
collectionId: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action collection-get --payload '{"collectionId":"<value>"}' Give an AI agent Bitwarden — without giving it Bitwarden's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.bitwarden#collection-get",
"input": {
"collectionId": "<collectionId>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's Bitwarden connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
Bitwarden's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. Bitwarden itself is MIT, and the runtime that executes it is source-available (FSL).
Bitwarden declares its own checks, so its health is a property of the app rather than something the host guesses at.