Authentication API
Authentication API
Overview
Authentication Methods
1. API Key Authentication (Server-to-Server)
curl -X GET https://api.buburuza.com/v1/customers \
-H "Authorization: Bearer bb_live_1234567890abcdef" \
-H "Content-Type: application/json"2. OAuth 2.0 (User Authentication)
// Redirect users to Buburuza OAuth
const authUrl = buburuza.auth.getAuthorizationUrl({
clientId: 'your_client_id',
redirectUri: 'https://yourapp.com/callback',
scope: ['accounts:read', 'transactions:write'],
state: 'random_state_string'
});
window.location.href = authUrl;3. Biometric Authentication (Mobile)
API Endpoints
Generate Access Token
Refresh Access Token
Validate Token
Revoke Token
OAuth 2.0 Flows
Authorization Code Flow
Client Credentials Flow
PKCE Flow (Mobile Apps)
Biometric Authentication
Setup Biometric Authentication
Authenticate with Biometrics
Scopes and Permissions
Available Scopes
Scope
Description
Access Level
Scope Examples
Security Best Practices
Token Storage
Token Refresh Strategy
Error Handling
Multi-Factor Authentication (MFA)
Enable MFA for User
Verify MFA Code
Webhook Authentication
Rate Limiting
Testing Authentication
Sandbox Environment
Mock Biometric Authentication
Support and Resources
Last updated