/lastpass:api-patternsfrom lastpass
Documents the LastPass Business/MSP REST API surface through Conduit: 23 read-only tools, authentication with X-LastPass-API-Key header, pagination, filters, error codes, and key scope differences.
Ships in lastpass. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This plugin reaches the LastPass REST API (Business and MSP admin,
https://api.lastpass.com/business) through the WYRE Conduit gateway.
Every tool is a read. Nothing in this connector can create, change,
disable or delete a user, send an invite, grant an admin level, or touch
a managed company, and the API never returns vault contents or
passwords.
What you can see: users and their security posture, pending invites, user groups and members, admin levels (RBAC roles) and who holds them, and for an MSP key the managed companies, a cross-tenant admin-user report, and billing reports.
What you cannot see here: shared folders, vault items, policies, and event or security reports. LastPass only exposes those through its legacy Enterprise API, which this connector does not use. Say so plainly when a request needs them; do not infer them from other data.
| Header | Value |
|---|---|
X-LastPass-API-Key | The bare LastPass API key (starts with lpkey_) |
Conduit injects that header from the LastPass connection; nothing is set
on the client, and Conduit drops any X-LastPass-API-Key header a client
sends. In the Conduit web UI (/connect/lastpass), paste the key into the
LastPass connector's LastPass API key field. Paste the bare key, not
Api-Key lpkey_...: Conduit rejects anything that does not start with
lpkey_.
An admin creates the key in the LastPass Admin Console under Advanced > LastPass API. The LastPass API is in early access: the account has to be enrolled by LastPass before a key works, and an unenrolled account gets HTTP 401 or 403.
The key has no read-only scope in LastPass. Conduit and the connector only ever send GET requests, but the key itself could write if used elsewhere, so create one just for Conduit and revoke it in the Admin Console if it is ever exposed.
| Key type | Can call |
|---|---|
| Business (or the MSP's own company) | The 9 own-company tools: lastpass_users_list, lastpass_user_get, lastpass_invites_list, lastpass_user_groups_list, lastpass_user_group_get, lastpass_user_group_users_list, lastpass_admin_levels_list, lastpass_admin_level_get, lastpass_admin_level_users_list |
| MSP | All of the above for the MSP's own company, plus the 14 managed-company and report tools |
A Business key calling a lastpass_managed_company_* or
lastpass_reports_* tool gets HTTP 403. That is the key type, not a
permissions bug. One MSP key reaches every child and grandchild company.
All 23 tools are tier read in Conduit. None is admin-gated, and there are no write, delete or admin tools to withhold.
| Area | Tools (own company) | Tools (client company, MSP key) |
|---|---|---|
| Users | lastpass_users_list, lastpass_user_get | lastpass_managed_company_users_list, lastpass_managed_company_user_get |
| Invites | lastpass_invites_list | lastpass_managed_company_invites_list |
| Groups | lastpass_user_groups_list, lastpass_user_group_get, lastpass_user_group_users_list | lastpass_managed_company_user_groups_list, lastpass_managed_company_user_group_get, lastpass_managed_company_user_group_users_list |
| Admin levels | lastpass_admin_levels_list, lastpass_admin_level_get, lastpass_admin_level_users_list | lastpass_managed_company_admin_levels_list, lastpass_managed_company_admin_level_get, lastpass_managed_company_admin_level_users_list |
| Companies | n/a | lastpass_managed_companies_list, lastpass_managed_company_get |
| MSP reports | n/a | lastpass_reports_admin_users_list, lastpass_reports_billing_cycles_list, lastpass_reports_billing_list |
Every client-company tool takes child_company_id. Get it from
lastpass_managed_companies_list (filter with name, e.g. %contoso%).
Path IDs (child_company_id, user_id, group_id, admin_level_id)
must be numeric.
A user record carries: id, name, email, accountStatus,
advancedMfaStatus, enabledMfa, federatedStatus, creationTime,
lastLoginTime, lastMasterPasswordChangeTime, lastInvitationTime,
securityChallengeScore, masterPasswordScore, adminLevelId.
accountStatus values: enrolled, disabled, staged,
pending-invitation, expired-invitation, awaiting-approval.
A managed company carries id, parentId, name, licenseLimit,
type (managed or managed-msp), addons (mfa, sso) and
status (active = billed this month, suspended = not billed).
List tools return { items, nextPageToken }. Pass nextPageToken back
as page_token to get the next page; when it is absent you have the
last page. The connector never pages for you.
| Tool family | max_results cap | Vendor default |
|---|---|---|
Users lists, lastpass_managed_companies_list, lastpass_reports_admin_users_list | 500 | 10 |
| Everything else that pages (invites, groups, members, admin levels, billing report) | 50 | 10 |
The default of 10 is small. Set max_results explicitly, and keep
paging until nextPageToken is gone before saying a user, group or
admin does not exist.
If a page is too large for the connector's output limit, the call fails
with an error naming a max_results that fits. Retry with that value; a
page is never silently cut short.
name and email filters use %. %@contoso.com
finds a domain, jane% a prefix, %smith% a substring. Without %
the match is exact.security_challenge_score, last_invitation_time,
last_invitation and license_limit take [from:to] with either
side optional. [:50] means 50 or lower; [2026-01-01:] means on or
after that date.field:direction. The documented examples are name:asc,
email:desc and id:asc (name:asc for groups and admin levels).
For a worst-first list, filter with the score range and order the
results yourself.status, type, addon on lastpass_managed_companies_list)
take a list of enum values, e.g. ["active"].account_status takes one value.The user list tools never return users in Awaiting approval status, and they omit Staged and Pending invitation users whose email already has a LastPass subscription. The invite tools omit Awaiting approval and Staged users. So:
account_status: awaiting-approval result does not mean
there are none.lastpass_invites_list (or lastpass_managed_company_invites_list)
as well as the users list.Errors come back as tool errors with the HTTP status, LastPass's title and detail, and a request ID when LastPass sends one.
| Status | Meaning | Action |
|---|---|---|
| 400 | Bad parameter or filter (often a malformed [from:to] range or date) | Fix the argument; field errors are listed |
| 401 | Key missing, invalid, or the account is not enrolled in the API early access | Check the key in Advanced > LastPass API; confirm early-access enrollment |
| 402 | LastPass subscription expired | Tell the user; nothing to retry |
| 403 | Key lacks permission, usually a Business key on an MSP tool | Use an own-company tool or connect an MSP key |
| 404 | Unknown company, user, group or admin level ID | Re-list to get a current ID |
| 429 | Rate limit; some limits are shared by every key in the company | Wait for the Retry after Ns value, then retry. Slow down sweeps |
Before the first call, Conduit refuses keys that do not start with
lpkey_ with "This is not a LastPass API key".
api.lastpass.com.
It is not confirmed that EU data-center accounts are served there, so
a 401 on an EU account may be the region, not the key.securityChallengeScore and
masterPasswordScore are 0 to 100. Report the number and say what
threshold you used.What SKILL.md sets; muted values are Claude Code's defaults
When calling any LastPass tool, deciding whether something is possible through this connector at all, or diagnosing a LastPass connection or tool failure. Use when: lastpass api, lastpass mcp, lastpass api key, lpkey, lastpass 401, lastpass 403, lastpass pagination, nextPageToken, lastpass msp key, or "can Claude change LastPass".
Three short reads, in order
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin lastpass5 skills in this plugin
/msp-billingLastPass MSP BillingReconciling LastPass MSP license consumption: billing cycles, the per-company billing report (`dailyAverageLicenseCount`, `licenseType`, `addons`), managed-company license limits and active/suspended status, and matching all of it against what the MSP bills each client in the PSA. MSP keys only.
/offboarding-reviewLastPass Offboarding ReviewLeaver access review in LastPass: finding a departing user in the MSP's own company or a client company, reading their account status, admin level and group memberships, catching a pending invite that was never revoked, and producing the checklist of actions a LastPass admin must take in the Admin Console, because this connector cannot disable or remove anyone.
/privileged-accessLastPass Privileged Access ReviewReviewing who holds LastPass admin rights: admin levels (RBAC roles) and their permissions, the users in each level, the MSP cross-tenant admin-user report, and how to cross-check admins for MFA, dormancy and leaver status. Produces an access-review record suitable for SOC 2, ISO 27001 or cyber-insurance evidence.
/security-postureLastPass Security PosturePer-client LastPass account hygiene from user records: MFA coverage (`advancedMfaStatus`, `enabledMfa`), weak Security Challenge and master-password scores, stale master passwords, dormant enrolled accounts, invitations that never converted, and how to roll those into a client-facing posture summary. Covers what the API cannot show (policies, shared folders, events) so the summary does not overclaim.
Other plugins' skills for the same job