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.
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_membersreturns everyone's email, role, two-factor status, invitation status and collection access.get_memberandlist_member_groupsgo deeper on one person. - Groups:
list_groups,get_groupandlist_group_membersshow who gets which collections in bulk. - Collections:
list_collectionsandget_collectionshow which groups can reach each collection. They never return the items inside. - Policies:
list_policiesandget_policyshow which security policies are on, such as required two-step login. - Activity:
list_eventsreads the organization's event log: sign-ins, item views and changes, group and policy changes. - Seats:
get_subscriptionshows seat counts and storage.
The other fourteen change things. Most are classed destructive, because they widen or remove someone's access to shared credentials:
| Action | What it changes | Kind |
|---|---|---|
reinvite_member | Resends a pending invitation email | Write |
revoke_member | Suspends a member's access, reversibly | Write |
create_group | Creates an empty group | Write |
invite_member | Invites someone by email, with the collections you name | Destructive |
update_member | Replaces a member's role, permissions and collection access | Destructive |
update_member_groups | Replaces the groups a member belongs to | Destructive |
restore_member | Gives a revoked member their access back | Destructive |
delete_member | Removes a member from the organization | Destructive |
update_group | Replaces a group's name and collections | Destructive |
update_group_members | Replaces a group's member list | Destructive |
delete_group | Deletes a group | Destructive |
update_collection | Replaces which groups can reach a collection | Destructive |
delete_collection | Deletes a collection and every item in it | Destructive |
update_policy | Switches a security policy on or off | Destructive |
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.
- Sign in to the Bitwarden web app as an owner and open the Admin Console.
- Go to Settings → Organization info and scroll down to the API key section.
- Copy the client_id and client_secret shown there.
- Settings
- Organization info
- API key
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
- In Toolspoke, open the project your agents work in. Find Bitwarden in the marketplace and add it.
- Paste the Client ID and Client secret from step 1.
- 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 URLhttps://identity.bitwarden.eu. - Self-hosted: API URL is your root address plus
/api, Identity URL is your root address plus/identity. For examplehttps://vault.example.com/apiandhttps://vault.example.com/identity.
list_policies answered. The credential works.
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.
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.
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.
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.
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.