Authentication Methods
Bitwarden API supports multiple authentication methods:OAuth 2.0
The primary authentication method for accessing the Bitwarden API. Applications authenticate using OAuth 2.0 flows to obtain access tokens. Supported Grant Types:- Authorization Code
- Client Credentials
- Resource Owner Password Credentials
API Keys
Users and organizations can generate API keys for programmatic access:- Personal API Keys: For individual user accounts
- Organization API Keys: For organization-level operations
- Service Account Tokens: For Secrets Manager service accounts
Session-Based Authentication
Web applications use session-based authentication with secure cookies after successful login.Authorization Policies
The API uses attribute-based authorization with the following policies:Application- Standard authenticated user accessWeb- Web application accessOrganization- Organization-scoped operationssecrets- Secrets Manager access
Security Considerations
Best Practices
- Rotate credentials regularly - Update API keys and tokens periodically
- Use least privilege - Grant only necessary permissions
- Secure storage - Store credentials securely, never in source code
- Monitor access - Review audit logs for unusual activity
Next Steps
Accounts
Manage user accounts and profiles
Auth Requests
Passwordless authentication flows
Two-Factor Auth
Configure 2FA methods