Overview
The Distributor API uses API key authentication via theAuthorization header. All requests must include a valid API key with the appropriate permissions.
Authentication Method
Header Format
Bearer token containing your API key. Must start with the prefix
uwk_API Key Format
Universal Wallet API keys follow this format:Security Features
Key Hashing
API keys are hashed using SHA-256 before storage. The plaintext key is only shown once upon creation.IP Whitelisting
Keys can be restricted to specific IP addresses for enhanced security.Expiration
All keys have an expiration date. Expired keys are automatically rejected.Scoped Permissions
Each key has granular permissions:- Read Balance: Query distributor wallet balance
- Read Transactions: View operation history
- Perform Operations: Create cash-in/cash-out operations
Transaction Limits
Keys can have per-transaction and daily volume limits.Error Responses
Best Practices
Use Environment Variables
Use Environment Variables
Store API keys in environment variables, never hard-code them:
Rotate Keys Regularly
Rotate Keys Regularly
Create new keys and revoke old ones every 90-180 days to minimize risk.
Use Minimum Required Permissions
Use Minimum Required Permissions
Only enable the permissions your integration actually needs.
Monitor Key Usage
Monitor Key Usage
Regularly review API key usage logs for unexpected activity.
Related Resources
Creating API Keys
Learn how to create and manage API keys
Security Best Practices
Comprehensive security guide