How to connect Bitwarden to Toolspoke

Let your Toolspoke agents audit your Bitwarden organization's members, groups, collections, policies and event log through the Public API, without ever seeing a vault item. The organization API key and an access-review agent.

Bitwarden toolkitManage an organisation's members, groups, collections, and policies.

Checked against Bitwarden's documentation on 2026-11-25.

Toolspoke's Bitwarden toolkit uses Bitwarden's organization Public API, the one for managing members, groups, collections, policies and the event log. It doesn't use the Vault Management API (which only runs locally behind bw serve) or Secrets Manager. The Public API can't read or change individual vault items, so an agent can tell you who can reach which collection, but never what's in it.

Once it's installed, any agent in the project can use it. This guide sets it up so agents can answer access-review questions first, and only later, if ever, change who has access. Then it builds an agent that posts a weekly access review to your security channel.

It takes about five minutes if you're an organization owner.

What an agent can do once it's connected

The toolkit has 26 named actions. Twelve of them only read:

  • Members: list_members returns everyone's email, role, two-factor status, invitation status and collection access. get_member and list_member_groups go deeper on one person.
  • Groups: list_groups, get_group and list_group_members show who gets which collections in bulk.
  • Collections: list_collections and get_collection show which groups can reach each collection. They never return the items inside.
  • Policies: list_policies and get_policy show which security policies are on, such as required two-step login.
  • Activity: list_events reads the organization's event log: sign-ins, item views and changes, group and policy changes.
  • Seats: get_subscription shows seat counts and storage.

The other fourteen change things. Most are classed destructive, because they widen or remove someone's access to shared credentials:

ActionWhat it changesKind
reinvite_memberResends a pending invitation emailWrite
revoke_memberSuspends a member's access, reversiblyWrite
create_groupCreates an empty groupWrite
invite_memberInvites someone by email, with the collections you nameDestructive
update_memberReplaces a member's role, permissions and collection accessDestructive
update_member_groupsReplaces the groups a member belongs toDestructive
restore_memberGives a revoked member their access backDestructive
delete_memberRemoves a member from the organizationDestructive
update_groupReplaces a group's name and collectionsDestructive
update_group_membersReplaces a group's member listDestructive
delete_groupDeletes a groupDestructive
update_collectionReplaces which groups can reach a collectionDestructive
delete_collectionDeletes a collection and every item in itDestructive
update_policySwitches a security policy on or offDestructive

The update_* actions replace the whole record. Anything left out is reset, so the agent has to read the current state first. You decide which of these your agents may call (step 3).

What you need

  • A Bitwarden Teams or Enterprise organization. Bitwarden only offers the Public API on those plans.
  • An owner of that organization, to fetch the API key.
  • A Toolspoke workspace, and a project to install the toolkit in.

Self-hosted Bitwarden works too, if it's served over HTTPS at a public address. Toolspoke refuses private-network addresses.

Step 1: Get the organization API key

Bitwarden has no scoped or read-only version of this key. Bitwarden's own docs say the organization API key "enables full access to your organization". Least privilege therefore happens in Toolspoke, in step 3, not here.

  1. Sign in to the Bitwarden web app as an owner and open the Admin Console.
  2. Go to Settings → Organization info and scroll down to the API key section.
  3. Copy the client_id and client_secret shown there.
Bitwarden Admin Console
  1. Settings
  2. Organization info
  3. API key
client_id
copy this value, it starts with organization.
client_secret
copy this value
Only an organization owner can get the key. Rotate API key on the same screen replaces it. Illustration of Bitwarden Admin Console's screen. The labels are Bitwarden Admin Console's; the layout is ours.

The client ID must start with organization.. A personal API key, which starts with user., can't reach these endpoints.

If someone other than the owner is setting up Toolspoke, Bitwarden recommends passing the key over a secure channel such as Bitwarden Send.

Step 2: Install the Bitwarden toolkit in Toolspoke

  1. In Toolspoke, open the project your agents work in. Find Bitwarden in the marketplace and add it.
  2. Paste the Client ID and Client secret from step 1.
  3. Set the two URLs for where your organization lives:
    • Bitwarden Cloud (US): leave API URL and Identity URL blank.
    • Bitwarden Cloud (EU): API URL https://api.bitwarden.eu, Identity URL https://identity.bitwarden.eu.
    • Self-hosted: API URL is your root address plus /api, Identity URL is your root address plus /identity. For example https://vault.example.com/api and https://vault.example.com/identity.
CredentialBitwarden
Client ID
••••••••••••••••
Bitwarden → Settings → Organization info → View API key. It must be the organisation key, which starts with organization. — a user. key cannot reach these endpoints.
Client secret
••••••••••••••••
Shown beside the client ID on the same screen. Regenerating it there revokes this connection.
API URLoptional
https://vault.example.com/api
Leave blank for Bitwarden Cloud (US). A self-hosted instance serves this API at your root URL plus /api — for example https://vault.example.com/api. For the EU cloud use https://api.bitwarden.eu.
Identity URLoptional
https://vault.example.com/identity
Where the client credentials are exchanged for a token. Leave blank for Bitwarden Cloud (US). Self-hosted instances serve it at your root URL plus /identity; the EU cloud uses https://identity.bitwarden.eu. It is separate from the API URL because Bitwarden runs the two on different hosts.

list_policies answered. The credential works.

Save and test
The Bitwarden toolkit's credential card in your Toolspoke project, with its real fields.

The connector exchanges the client ID and secret at the identity URL for an access token with the api.organization scope. Bitwarden's tokens last an hour, so you paste the long-lived client credentials, never a token.

Toolspoke checks the connection by listing your policies. If that fails, see Troubleshooting.

The credentials are encrypted at rest and attached to each request by the gateway. The agent never sees them, and they never appear in the arguments an agent sends or in the audit log.

Step 3: Decide what agents may change

This step matters more for Bitwarden than for most toolkits, because the key itself can't be narrowed.

In the project's toolkit settings, Bitwarden's actions are grouped as read, write and destructive. Each one can be switched on or off for everyone in the project. An action that's switched off can't be called, whatever the prompt says.

A sensible start: leave the twelve reads on and switch off every write and destructive action. If you want agents to help with incident response, turn revoke_member back on. It only takes access away, and an owner can restore it later.

Leave delete_collection and delete_member off for good unless you have a specific reason. Bitwarden says removing a member can't be undone, and deleting a collection takes its items with it.

Bitwarden actions in your project

Agents can call 12 of 26, and none of them change anything.

Read
Looks, changes nothing.
  • list_membersList everyone in the organisation with their email, role, two-factor status, invitation status, and the collections they can reach.
  • get_memberFetch one member by id, with their role, permissions, and collection access.
  • list_member_groupsList the group ids one member belongs to.
  • list_groupsList the organisation's groups with the collections each one grants.
  • get_groupFetch one group by id, with the collections it grants.
  • list_group_membersList the member ids in one group.
  • list_collectionsList the organisation's collections.
  • get_collectionFetch one collection by id, including the groups that can reach it.
  • list_policiesList the organisation's security policies and whether each is switched on.
  • get_policyFetch one policy by its integer type, with its current settings.
  • list_eventsRead the organisation's event log — who signed in, who viewed or changed which vault item, and who altered a group or policy.
  • get_subscriptionRead the organisation's seat counts and storage, for Password Manager and Secrets Manager.
Write
Changes something you can change back.
  • reinvite_memberSend the invitation email again to a member who has not accepted yet.
  • revoke_memberSuspend a member's access without removing them from the organisation.
  • create_groupCreate a group.
Delete
Removes or overrides something for good.
  • invite_memberInvite somebody to the organisation, which emails them and begins granting them access to the collections named here.
  • update_memberReplace a member's role, permissions, groups, and collection access.
  • update_member_groupsReplace the set of groups a member belongs to.
  • restore_memberGive a revoked member their access back.
  • delete_memberRemove a member from the organisation.
  • update_groupReplace a group's name and the collections it grants.
  • update_group_membersReplace the set of members in a group, which is how collection access is granted or taken away in bulk.
  • delete_groupDelete a group.
  • update_collectionReplace which groups can reach a collection.
  • delete_collectionDelete a collection and every vault item inside it.
  • update_policySwitch a security policy on or off.
Try the switches. They start the way this guide suggests; nothing here changes your project.

Every call is recorded with the agent and person behind it, the request, the response and the duration.

Step 4: Build an agent that uses it

In Toolspoke, create an agent and describe its job in one sentence. The builder proposes the instructions, the toolkits it needs, a schedule and where it should answer. You add or skip each one, then create the agent. Every piece stays editable afterwards.

The agent only reads, so it works with every write and destructive action switched off. The same agent answers when someone asks it in Slack or emails it, and it replies in the thread it was asked in.

Try it

Ask the agent in Slack, by email or in its chat:

  • Which Bitwarden members don't have two-step login turned on?
  • Who has been invited but never accepted?
  • Which groups can reach the Production collection, and who's in each of them?
  • Is the two-step login policy on? Is the single organization policy on?
  • Who changed a group or a policy in the last 30 days?
  • How many seats do we have left?
  • Revoke access for [email protected]. Her laptop was stolen.

The last prompt needs revoke_member switched on. If someone emails the agent, a revoke waits for a person's go-ahead unless you've allowed it in advance.

With no filters, list_events returns the last 30 days. For longer ranges the agent pages through with the continuation token Bitwarden returns. The Bitwarden toolkit page lists every action.

Troubleshooting

400 Bad Request when the connection is checked.

The client ID or secret is wrong or incomplete, or the identity URL points at the wrong region. An EU organization needs both EU URLs. Check you copied the organization key, not a personal one.

401 Unauthorized on every call.

The key was rotated. Once an owner chooses Rotate API key, the old secret stops working, and you need to paste the new one.

A self-hosted connection fails.

Check both URLs. Bitwarden serves the API and identity on different paths, and each needs its own. The address must be public HTTPS.

404 on a member, group or collection.

The ID came from a different organization, or the record was deleted. Ask the agent to list again and use the fresh ID.

429 Too Many Requests.

Bitwarden doesn't publish a number. Ask for fewer things at once, for example one group's members instead of every group's.

Event questions come back empty for older dates.

Bitwarden keeps event data, but you can only view up to 367 days at a time.

Questions

Can an agent read passwords or other vault items?

No. Bitwarden's Public API has no endpoint for vault item contents, and the toolkit has only the 26 actions above.

Can I give Toolspoke a read-only Bitwarden key?

Bitwarden doesn't offer one. Use the toolkit's read, write and destructive switches instead.

What happens if the key leaks?

An owner should choose Rotate API key under Settings → Organization info, then paste the new key into Toolspoke.

Connect Bitwarden to Toolspoke

Install Bitwarden in a project, give it to an agent, and every call is checked and logged.