# LastPass API > The LastPass API enables programmatic management of your organization’s LastPass entities — users, roles (admin levels), and managed (child) companies for Managed Service Providers (MSPs) — supporting lifecycle operations (create, read, update, delete), invitations, and reporting. **Terms of Service**: https://www.lastpass.com/legal-center/developer-terms ## Documentation This site provides API documentation in both HTML (for humans) and Markdown (for LLMs). ### Full API Reference - HTML: https://developer.lastpass.com/business/docs/ - Markdown: https://developer.lastpass.com/business/docs/index.md ## Authentication **Type**: API Key **Header**: `Authorization` Authenticate using your LastPass API key. Set the `Authorization` header to `api-key `. Example: `api-key lpkey_XXXXXXXXXXXX_YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY` Generate your API key in the LastPass Admin Console under **Advanced → LastPass API**. ### By Resource #### Users Create, retrieve, update, delete, and invite users within your company. - Resource overview: [https://developer.lastpass.com/business/docs/users.md](https://developer.lastpass.com/business/docs/users.md) - List users: [https://developer.lastpass.com/business/docs/users/list-users.md](https://developer.lastpass.com/business/docs/users/list-users.md) - Create user: [https://developer.lastpass.com/business/docs/users/create-user.md](https://developer.lastpass.com/business/docs/users/create-user.md) - Get user: [https://developer.lastpass.com/business/docs/users/get-user.md](https://developer.lastpass.com/business/docs/users/get-user.md) - Partially update user: [https://developer.lastpass.com/business/docs/users/partially-update-user.md](https://developer.lastpass.com/business/docs/users/partially-update-user.md) - Delete user: [https://developer.lastpass.com/business/docs/users/delete-user.md](https://developer.lastpass.com/business/docs/users/delete-user.md) - Invite user: [https://developer.lastpass.com/business/docs/users/invite-user.md](https://developer.lastpass.com/business/docs/users/invite-user.md) #### Admin levels Define and manage role-based access control (RBAC) levels and assign users to them. - Resource overview: [https://developer.lastpass.com/business/docs/admin-levels.md](https://developer.lastpass.com/business/docs/admin-levels.md) - List admin levels: [https://developer.lastpass.com/business/docs/admin-levels/list-admin-levels.md](https://developer.lastpass.com/business/docs/admin-levels/list-admin-levels.md) - Get admin level: [https://developer.lastpass.com/business/docs/admin-levels/get-admin-level.md](https://developer.lastpass.com/business/docs/admin-levels/get-admin-level.md) - List admin level users: [https://developer.lastpass.com/business/docs/admin-levels/list-admin-level-users.md](https://developer.lastpass.com/business/docs/admin-levels/list-admin-level-users.md) - Add user to admin level: [https://developer.lastpass.com/business/docs/admin-levels/add-user-to-admin-level.md](https://developer.lastpass.com/business/docs/admin-levels/add-user-to-admin-level.md) - Remove user from admin level: [https://developer.lastpass.com/business/docs/admin-levels/remove-user-from-admin-level.md](https://developer.lastpass.com/business/docs/admin-levels/remove-user-from-admin-level.md) #### Managed companies Manage companies in a Managed Service Provider (MSP) hierarchy. - Resource overview: [https://developer.lastpass.com/business/docs/managed-companies.md](https://developer.lastpass.com/business/docs/managed-companies.md) - List managed companies: [https://developer.lastpass.com/business/docs/managed-companies/list-managed-companies.md](https://developer.lastpass.com/business/docs/managed-companies/list-managed-companies.md) - Create managed company: [https://developer.lastpass.com/business/docs/managed-companies/create-managed-company.md](https://developer.lastpass.com/business/docs/managed-companies/create-managed-company.md) - Get managed company: [https://developer.lastpass.com/business/docs/managed-companies/get-managed-company.md](https://developer.lastpass.com/business/docs/managed-companies/get-managed-company.md) - Update managed company: [https://developer.lastpass.com/business/docs/managed-companies/update-managed-company.md](https://developer.lastpass.com/business/docs/managed-companies/update-managed-company.md) - Partially update managed company: [https://developer.lastpass.com/business/docs/managed-companies/partially-update-managed-company.md](https://developer.lastpass.com/business/docs/managed-companies/partially-update-managed-company.md) - Detach managed company: [https://developer.lastpass.com/business/docs/managed-companies/detach-managed-company.md](https://developer.lastpass.com/business/docs/managed-companies/detach-managed-company.md) #### Managed companies users Manage users within child companies in an MSP hierarchy. - Resource overview: [https://developer.lastpass.com/business/docs/managed-companies-users.md](https://developer.lastpass.com/business/docs/managed-companies-users.md) - List users of a managed company: [https://developer.lastpass.com/business/docs/managed-companies-users/list-managed-company-users.md](https://developer.lastpass.com/business/docs/managed-companies-users/list-managed-company-users.md) - Create user in a managed company: [https://developer.lastpass.com/business/docs/managed-companies-users/create-managed-company-user.md](https://developer.lastpass.com/business/docs/managed-companies-users/create-managed-company-user.md) - Get user in a managed company: [https://developer.lastpass.com/business/docs/managed-companies-users/get-managed-company-user.md](https://developer.lastpass.com/business/docs/managed-companies-users/get-managed-company-user.md) - Partially update user in a managed company: [https://developer.lastpass.com/business/docs/managed-companies-users/partially-update-managed-company-user.md](https://developer.lastpass.com/business/docs/managed-companies-users/partially-update-managed-company-user.md) - Delete user in a managed company: [https://developer.lastpass.com/business/docs/managed-companies-users/delete-managed-company-user.md](https://developer.lastpass.com/business/docs/managed-companies-users/delete-managed-company-user.md) - Invite user in a managed company: [https://developer.lastpass.com/business/docs/managed-companies-users/invite-managed-company-user.md](https://developer.lastpass.com/business/docs/managed-companies-users/invite-managed-company-user.md) #### Managed companies admin levels Manage role-based access control (RBAC) levels within child companies in an MSP hierarchy. - Resource overview: [https://developer.lastpass.com/business/docs/managed-companies-admin-levels.md](https://developer.lastpass.com/business/docs/managed-companies-admin-levels.md) - List admin levels for a managed company: [https://developer.lastpass.com/business/docs/managed-companies-admin-levels/list-managed-company-admin-levels.md](https://developer.lastpass.com/business/docs/managed-companies-admin-levels/list-managed-company-admin-levels.md) - Get admin level for a managed company: [https://developer.lastpass.com/business/docs/managed-companies-admin-levels/get-managed-company-admin-level.md](https://developer.lastpass.com/business/docs/managed-companies-admin-levels/get-managed-company-admin-level.md) - List admin level users for a managed company: [https://developer.lastpass.com/business/docs/managed-companies-admin-levels/list-managed-company-admin-level-users.md](https://developer.lastpass.com/business/docs/managed-companies-admin-levels/list-managed-company-admin-level-users.md) - Add user to admin level in a managed company: [https://developer.lastpass.com/business/docs/managed-companies-admin-levels/add-managed-company-user-to-admin-level.md](https://developer.lastpass.com/business/docs/managed-companies-admin-levels/add-managed-company-user-to-admin-level.md) - Remove user from admin level in a managed company: [https://developer.lastpass.com/business/docs/managed-companies-admin-levels/remove-managed-company-user-from-admin-level.md](https://developer.lastpass.com/business/docs/managed-companies-admin-levels/remove-managed-company-user-from-admin-level.md) #### Managed companies reports Access billing cycles, billing reports, and admin user reports across managed companies. - Resource overview: [https://developer.lastpass.com/business/docs/managed-companies-reports.md](https://developer.lastpass.com/business/docs/managed-companies-reports.md) - Admin users: [https://developer.lastpass.com/business/docs/managed-companies-reports/list-managed-companies-admin-users.md](https://developer.lastpass.com/business/docs/managed-companies-reports/list-managed-companies-admin-users.md) - Billing cycles: [https://developer.lastpass.com/business/docs/managed-companies-reports/list-billing-cycles.md](https://developer.lastpass.com/business/docs/managed-companies-reports/list-billing-cycles.md) - Billing report: [https://developer.lastpass.com/business/docs/managed-companies-reports/list-billing-reports.md](https://developer.lastpass.com/business/docs/managed-companies-reports/list-billing-reports.md) ## Machine-Readable Formats - OpenAPI Spec (YAML): https://developer.lastpass.com/api/openapi.yaml