Skip to main content

Installation

Get started with Sendmator in just a few steps. Choose your preferred method below.

Get Your API Key

  1. Sign up for a Sendmator account
  2. Navigate to your API settings
  3. Generate a new API key
  4. 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