API Documentation
Authentication
Learn how to authenticate with Shoutbox API and SMTP
Authentication
Shoutbox provides two ways to send emails: via our REST API or via SMTP. Both methods use the same API key for authentication.
Getting Your API Key
- Visit https://shoutbox.net
- Sign up for an account or log in if you already have one
- Navigate to the API Keys section in your dashboard
- Create a new API key
Your API key can be used for both REST API calls and SMTP authentication.
REST API Authentication
The REST API uses Bearer token authentication. Include your API key in the Authorization
header with the Bearer
prefix.
SMTP Authentication
For SMTP, use the following credentials:
- Username:
shoutbox
- Password: Your API key (e.g.,
XXXXXXX
)
SMTP Server Details
- Host:
smtp.shoutbox.net
- Port:
587
(TLS) or465
(SSL) - Authentication: Required
- TLS: Required
Example Using Swaks
Swaks is a versatile SMTP testing tool. Here’s how to send a test email:
Security Best Practices
- Keep Your Key Secret: Never expose your API key in client-side code or public repositories
- Use Environment Variables: Store your API key in environment variables
- Regular Rotation: Rotate your API keys periodically
- Monitor Usage: Regularly check your API key usage in the dashboard
- Revoke if Compromised: Immediately revoke any compromised API keys
Rate Limits
API keys are subject to rate limits:
- 60 requests per minute per API key
- Same limit applies to both REST API and SMTP
Contact support if you need higher limits for your use case.
Troubleshooting
If you encounter authentication errors:
- Verify your API key is correct
- Ensure you’re using the correct authentication method:
- REST API:
Bearer XXXXXXX
in Authorization header - SMTP: Username
shoutbox
, password is your API key
- REST API:
- Check if your API key has been revoked or expired
- Verify you haven’t exceeded rate limits
Support
If you need assistance with authentication:
- Check our documentation
- Contact support through your dashboard
- Email [email protected]