Getting Your API Key
- Log into your DRIP dashboard
- Navigate to Settings > API Keys
- Click Generate New API Key
- Copy and securely store your API key
Keep your API keys secure and never expose them in client-side code. Treat them like passwords.
Authentication Header
Include your API key in theAuthorization
header using the Bearer token format:
Example Request
API Key Permissions
API keys inherit the permissions of the user who created them. Ensure your account has the necessary permissions for the operations you want to perform:- Read permissions: View realm data, member information, point balances
- Write permissions: Update member balances, create quests, manage store items
- Admin permissions: Full realm management capabilities
Testing Authentication
You can test your authentication by making a simple request to get your realm information:401 Unauthorized
status.
Security Best Practices
Environment Variables
Store API keys in environment variables, never in your source code
Rotate Keys
Regularly rotate your API keys and revoke unused ones
Scope Permissions
Use accounts with minimal necessary permissions for API operations
Monitor Usage
Monitor API key usage to detect unauthorized access