Skip to content

Quickstart

In the dashboard, create an API key. Store it securely: the token is only shown once when you create it.

To send signed email you need a verified domain. Publish the SPF/DKIM/DMARC records provided by the API (see Concepts).

The payload follows SendGrid style: personalizations[].to[].email, from, subject and content[].

Ventana de terminal
curl -X POST https://api.mailerdash.com/v1/mail/send \
-H "Authorization: Bearer $MAILERDASH_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Md-Channel: trans" \
-d '{
"personalizations": [{ "to": [{ "email": "recipient@example.com" }] }],
"from": { "email": "no-reply@tu-dominio.com", "name": "Tu Servicio" },
"subject": "Hola desde MailerDash",
"content": [{ "type": "text/html", "value": "<h1>Funciona 🎉</h1>" }]
}'

Error responses use a consistent format:

{ "error": { "type": "validation_error", "code": "domain_unauthorized", "message": "..." } }

See the error reference for the full catalog of type and code values.