Installation
Get started with Sendmator in just a few steps. Choose your preferred method below.
Get Your API Key
- Sign up for a Sendmator account
- Navigate to your API settings
- Generate a new API key
- Keep your API key secure - never expose it in client-side code
Security
Your API key provides full access to your Sendmator account. Keep it secure and never commit it to version control.
Using the REST API
Sendmator provides a REST API that works with any programming language. No SDK installation required - just make HTTP requests to our endpoints.
Example API Call
Here's how to send your first email:
curl -X POST https://api.sendmator.com/v1/emails \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"from": "hello@yourapp.com",
"subject": "Hello from Sendmator",
"html": "<h1>Hello World!</h1>"
}'
Environment Variables
For security, we recommend storing your API key in environment variables:
# .env file
SENDMATOR_API_KEY=your-api-key-here
Next Steps
- Authentication - Learn about API authentication
- Quick Start - Send your first email
- API Overview - Explore all available endpoints