API & SMTP

Create API keys and connect to Dependal using HTTP or SMTP.

API keys

Use API keys for the HTTP API and as the SMTP password.
Key Status Created

No API keys yet

Create your first key to start sending with the HTTP API or SMTP.

SMTP credentials

Use any active API key as your SMTP password.
How SMTP auth works
Use apikey as the username and one of your active API keys as the password.

SMTP not available yet

SMTP becomes available after onboarding is complete and sending is enabled.

Quickstart

Use the same API key for HTTP API or SMTP.
curl -X POST https://api.dependal.com/send \
-H "X-API-Key: dp-xxx" \
-H "Content-Type: application/json" \
-d '{
  "from": "noreply@yourdomain.com",
  "to": ["you@example.com"],
  "subject": "Test email",
  "text": "Hello from Dependal",
  "html": "<strong>Hello from Dependal</strong>"
}'
const res = await fetch("https://api.dependal.com/send", {
  method: "POST",
  headers: {
    "X-API-Key": "dp-xxx",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    from: "noreply@yourdomain.com",
    to: ["you@example.com"],
    subject: "Test email",
    text: "Hello from Dependal",
    html: "<strong>Hello from Dependal</strong>"
  })
});

console.log(await res.json());
Host: smtp.dependal.com
Port: 587
Encryption: STARTTLS
Username: apikey
Password: dp-xxx

From: noreply@yourdomain.com

Connection options

Dependal supports both HTTP API and SMTP using the same API key model.
HTTP API
HTTP API
Header: x-api-key
SMTP auth
Username: apikey
Password: active API key
Recommended port
587 / STARTTLS