Setup API Keys
Generate and manage API keys for programmatic email access
Generate API keys for secure programmatic access to Keplers Mail Service.
API Keys: Secure tokens that allow your applications to send emails programmatically without requiring manual login.
Create API Key
Access API Keys
- Sign in to dash.keplars.com
- Navigate to API Keys in the sidebar
- Click Generate New API Key
Configure Key
- Enter a descriptive name (e.g., "Production API")
- Select your connected email account
- Choose permissions (Send Emails is most common)
Save Key
Important: Copy your API key immediately - it's shown only once.
- Copy the generated API key
- Store it securely in your environment variables
- Click Done
Using API Keys
Basic Usage
Include your API key in the Authorization header:
curl -X POST https://api.keplars.com/api/v1/send-email/queue \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": ["[email protected]"],
"subject": "Hello from Keplers",
"body": "Your first API email!"
}'Environment Variables
Store your API key securely:
# .env file
KEPLERS_API_KEY=kms_your_api_key_here// In your application
const apiKey = process.env.KEPLERS_API_KEY;Manage API Keys
View Keys
In your dashboard's API Keys section, you can:
- View all your API keys
- See usage statistics
- Check last activity
Update Keys
- Edit: Change name or permissions
- Deactivate: Temporarily disable
- Delete: Permanently remove
Security
Best Practices:
- Never commit API keys to code repositories
- Use environment variables
- Rotate keys regularly
- Monitor usage for suspicious activity
Next Steps
- Send Emails - Start sending emails with your API key
- Examples - See integration examples for your programming language
- Webhooks - Get delivery notifications
Your API key is ready. Start sending emails programmatically with Keplers Mail Service.