Configuration
Configure your environment and application to use HeliosSend.
Environment Variables
Client Configuration
Required Configuration
Store your API Key in an environment variable:
HELIOSSEND_API_KEY=cs_YOUR_API_KEYHELIOSSEND_API_URL=https://client.heliossend.comBase URL
API Endpoint
https://client.heliossend.comAll API requests should be made to this base URL. The API uses HTTPS for secure communication.
Security Best Practices
Securing Your API Key
- Never hardcode your API Key in your application code
- Use environment variables or secure secret management systems
- Never commit API Keys to version control
- Rotate your API Key regularly
- Use different API Keys for development and production
- Monitor API usage for suspicious activity
Domain Verification
Domain Setup
Before sending emails, verify your sender domain in the HeliosSend dashboard
How to Verify Your Domain
- Log in to your HeliosSend dashboard
- Navigate to Dashboard → Domains
- Click "Add Domain" and enter your domain name
- Add the provided DNS records (SPF, DKIM) to your domain's DNS settings
- Wait for verification (usually takes a few minutes)
After Verification
Once your domain is verified, you can send emails from any address on that domain.
- Use any email address from your verified domain as the sender
- SPF and DKIM records are automatically configured for better deliverability
- Send to any recipient email address
Error Handling
Handling Errors
HTTP Status Codes
- 200: Success
- 401: Invalid API Key
- 403: Account not active
- 404: Resource not found
- 500: Server error or send failure
Error Response Format
{
"detail": "Error message description"
}