Migrate from SendGrid to Mailaki
This guide moves transactional sending from Twilio SendGrid to Mailaki. Both APIs take JSON with a bearer key, so the change is mostly a reshaping of the request body: SendGrid nests recipients inside personalizations, Mailaki keeps them at the top level.
With the native API the send path is a contained change; allow more time if you have many dynamic templates or use unsubscribe groups, which Mailaki does not have.
There are two ways to move, and you can mix them:
- Keep your SendGrid client. Mailaki accepts SendGrid's API format at
https://mailaki.com/bridge/sendgrid. You change the base URL and the API key, and your send code stays as it is. It is the quick route. What the bridge does not mirror is listed in the sending section. - Call the Mailaki API. You rewrite the send call for
POST /v1/messages. It is more work, and it leaves nothing between you and the native API. The field mapping and the before and after code are below.
Either way, the import tool copies your templates, suppression lists and domains out of SendGrid with an API key, so you do not have to move them by hand.
Before you start
- A Mailaki account and an API key. Create an account, then make a key under API Keys in the portal. Live keys start with
mf_live_. - A test key as well (it starts with
mf_test_). A send made with it goes through the same validation, templates and events as a live send, but no email is delivered and it does not count against your plan. Use it to try your integration before real mail moves. See test mode. - Access to the DNS zone of the domain you send from. You will add TXT records; you will not remove anything yet.
- Your SendGrid account kept open and working. You need it for the import or export below, for the parallel run, and as the way back.
- A way to choose the provider per message in your code, such as an environment variable or feature flag. The cutover and the rollback both depend on it.
The import tool copies templates, suppression lists and domains out of SendGrid for you. If you would rather move them by hand, or want a record of what you had, this is the list:
- Bounces, invalid emails, spam reports and global unsubscribes.
- Every dynamic template you send with (subject, HTML and plain text of the active version).
- Your Event Webhook URL and the events it is subscribed to.
- The categories and custom args your app relies on.
Import your SendGrid account
The portal's Import page (owners and admins) copies your setup out of SendGrid: choose the provider, paste a SendGrid API key with read access, pick what to import and watch the progress. The same thing through the API needs a key with the admin scope:
curl -X POST https://mailaki.com/v1/imports \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"provider": "sendgrid", "region": "global", "api_key": "THE_KEY_FROM_SENDGRID",
"categories": ["templates", "suppressions", "domains", "team_members"]}'
curl https://mailaki.com/v1/imports/IMPORT_ID \
-H "Authorization: Bearer $MAILAKI_API_KEY"
Set region to global or eu.
| Category | What the import does |
|---|---|
| Templates | Created in your Mailaki account. A template already imported is skipped. |
| Suppressions | Bounces, complaints and unsubscribes are added with their reason and date. Entries you already have are left untouched. |
| Domains | Added unverified. You still publish Mailaki's DNS records and verify each domain; see the next section. |
| Team members | Listed only. Nobody is invited until you choose who to invite. |
- The key is used for that one import, held in memory until the import ends, and never stored, logged or returned. A read-only key is enough: SendGrid is only read, never changed.
- Run it again before the final switch to pick up what changed in the meantime. There is no scheduled re-sync; what is already in Mailaki is skipped.
- Not imported: webhooks, API keys, message history and statistics. Webhooks are set up again in the webhooks section.
- An import that is interrupted is marked failed and can be started again.
Details are in the docs under Import from another provider.
Add and verify your domain
If you imported your domains, they are already listed under Domains in the portal, unverified. Otherwise add the domain there, or with the API:
curl -X POST https://mailaki.com/v1/domains \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "yourdomain.com"}'
The response has the domain id (this is the domain_id you send with) and a dns_records object. The portal shows the same records with copy buttons. Publish them:
| Purpose | Type | Name | Value |
|---|---|---|---|
| Ownership | TXT | _mailaki.yourdomain.com | mailaki-verify=... (unique to your domain) |
| DKIM | TXT | mf1._domainkey.yourdomain.com | v=DKIM1; k=rsa; p=... (your domain's own public key) |
| SPF | TXT | yourdomain.com | v=spf1 include:spf.mailaki.com ~all |
| DMARC | TXT | _dmarc.yourdomain.com | v=DMARC1; p=none; rua=mailto:[email protected] |
- Ownership and DKIM are the two that enable sending. The domain is marked verified once both are found.
- DKIM is a TXT record, not a CNAME. Each domain has its own key. The selector is normally
mf1; use the exact name the portal shows. - SPF: one record per name. If the domain already has an SPF record, add
include:spf.mailaki.comto it; do not publish a second one. Keep your old provider'sincludein place until the cutover is finished. - DMARC: if you already publish a DMARC record, keep yours.
- No tracking CNAME. Open and click tracking links use
mailaki.com. There is no per-domain tracking hostname to set up.
Then press Verify in the portal or call POST /v1/domains/{id}/verify. Mailaki also re-checks a new domain by itself every few minutes during its first week, so you do not have to keep clicking while DNS propagates.
Both providers can be live at once
DKIM records live under a selector, and Mailaki's selector (mf1) is different from the one your current provider uses. Both sets of records can stay published, and mail signed by either provider verifies. Adding Mailaki's records does not interrupt mail you are still sending the old way.
Leave SendGrid's domain authentication records alone for now. They are CNAMEs: s1._domainkey and s2._domainkey for DKIM and an em... host for the return path, plus any link branding CNAMEs.
Sending
Route A: keep your SendGrid client
Point your existing client at the Mailaki bridge and use a Mailaki API key in place of your SendGrid one. Sends go through the same pipeline as POST /v1/messages.
https://mailaki.com/bridge/sendgrid
Authentication stays SendGrid's: Authorization: Bearer with your Mailaki key. The from address must be on a verified domain of your Mailaki account.
-sgMail.setApiKey(process.env.SENDGRID_API_KEY);
+sgMail.setApiKey(process.env.MAILAKI_API_KEY);
+// After setApiKey: setApiKey resets the base URL to SendGrid's.
+sgMail.client.setDefaultRequest("baseUrl", "https://mailaki.com/bridge/sendgrid");
The client prints a warning that the key does not start with SG.; it still sends it.
curl -s -X POST https://mailaki.com/bridge/sendgrid/v3/mail/send \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"personalizations": [{"to": [{"email": "[email protected]"}]}],
"from": {"email": "[email protected]", "name": "Acme"},
"subject": "Your receipt",
"content": [{"type": "text/plain", "value": "Thanks for your order."}]
}'
What the bridge mirrors
- Webhooks in SendGrid's format: create the webhook with
"format": "sendgrid"(POST /v1/webhooks) and events arrive in the body your SendGrid receiver already parses. See the webhooks section. - Sending:
POST /v3/mail/send. It answers202with an empty body and anX-Message-Idheader, as SendGrid does. Each personalization is its own message. - Send fields:
personalizations[](to,cc,bcc,subject,from,headers,send_at),dynamic_template_data,substitutions,from,reply_to,reply_to_list,subject,headers,send_at,content[](text/plainandtext/html),attachments[],template_id,categories(as tags), open and click tracking settings andmail_settings.sandbox_mode. - Templates by SendGrid id:
template_idmay be the SendGrid id (d-...) of a template you imported with the import tool, or the name or id of a Mailaki template. - Suppression lists, read only:
GET /v3/suppression/bounces,/spam_reportsand/unsubscribes.
What it does not mirror
GET /v3/messages, the blocks and invalid-emails lists, the templates endpoints, unsubscribe groups, stats and the marketing endpoints. Those requests return404with a message saying so.custom_args,asm,batch_id,ip_pool_name,mail_settings.bypass_*,mail_settings.footer,subscription_trackingandganalyticsare ignored.- An attachment with
disposition: inlineis sent as a regular attachment. Recipient display names are dropped.
The full list of endpoints, fields and error shapes is in the docs under SendGrid bridge. If your code uses something from the second list, use the native API for that part.
Route B: call the Mailaki API
| SendGrid | Mailaki | |
|---|---|---|
| Endpoint | POST https://api.sendgrid.com/v3/mail/send | POST https://mailaki.com/v1/messages |
| Auth | Authorization: Bearer SG.... | Authorization: Bearer mf_live_... |
| Body | JSON | JSON |
| Success | 202 with an empty body; the id is in the X-Message-Id header | 202 with {"ids": [...], "status": "queued", "dropped": []} |
Field mapping
| SendGrid | Mailaki | Notes |
|---|---|---|
from.email, from.name | from | One string: Name <address> |
personalizations[].to[].email | to | Flat array of bare addresses |
personalizations[].cc, .bcc | cc, bcc | JSON arrays of bare addresses |
subject | subject | |
content[] with type: "text/plain" | text | |
content[] with type: "text/html" | html | |
reply_to.email | headers: {"Reply-To": "..."} | |
headers | headers | Same shape |
attachments[].content, .filename, .type | attachments[].data, .filename, .content_type | Base64 in both |
categories[] | tags[] | |
send_at (Unix seconds) | scheduled_at | ISO 8601 |
template_id (d-...) | template_id | A Mailaki template UUID |
personalizations[].dynamic_template_data | variables | For per-recipient values use recipient_variables, keyed by address |
tracking_settings.open_tracking.enable | tracking.opens | Tracked only when the request has a tracking object |
tracking_settings.click_tracking.enable | tracking.clicks | Tracked only when the request has a tracking object |
custom_args | None | Keep your own map from Mailaki message id to your data |
Before and after
curl -X POST https://api.sendgrid.com/v3/mail/send \
-H "Authorization: Bearer $SENDGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"personalizations": [{"to": [{"email": "[email protected]"}]}],
"from": {"email": "[email protected]", "name": "Acme"},
"reply_to": {"email": "[email protected]"},
"subject": "Your receipt",
"content": [
{"type": "text/plain", "value": "Thanks for your order."},
{"type": "text/html", "value": "<p>Thanks for your order.</p>"}
],
"categories": ["receipt"]
}'
import sgMail from "@sendgrid/mail";
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
await sgMail.send({
to: "[email protected]",
from: { email: "[email protected]", name: "Acme" },
replyTo: "[email protected]",
subject: "Your receipt",
text: "Thanks for your order.",
html: "<p>Thanks for your order.</p>",
categories: ["receipt"],
});
curl -X POST https://mailaki.com/v1/messages \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain_id": "YOUR_DOMAIN_UUID",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"text": "Thanks for your order.",
"html": "<p>Thanks for your order.</p>",
"headers": {"Reply-To": "[email protected]"},
"tags": ["receipt"]
}'
// Node 18+ has fetch built in. No SDK needed.
const res = await fetch("https://mailaki.com/v1/messages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MAILAKI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
domain_id: process.env.MAILAKI_DOMAIN_ID,
from: "Acme <[email protected]>",
to: ["[email protected]"],
subject: "Your receipt",
text: "Thanks for your order.",
html: "<p>Thanks for your order.</p>",
headers: { "Reply-To": "[email protected]" },
tags: ["receipt"],
}),
});
if (!res.ok) throw new Error(`Mailaki ${res.status}: ${await res.text()}`);
const { ids, dropped } = await res.json(); // one id per recipient
There are Mailaki client libraries for seven languages, but none is published to a package registry yet and the repository that holds them is private, so the examples use plain HTTP. The full field list is in the API reference, and the OpenAPI spec is public if you want to generate a client.
What the Mailaki request looks like
One endpoint, JSON in, Authorization: Bearer <api key> (or an x-api-key header):
{
"ids": ["0193abc0-1234-7000-8000-000000000001"],
"status": "queued",
"dropped": []
}
domain_idis required. It is the UUID fromGET /v1/domains. If the value is not one of your domains, Mailaki uses your domain that thefromaddress is on.fromis a bare address orName <address>and must be on a verified domain.tois always an array of bare addresses. You get one message id per recipient.ccandbccare arrays of bare addresses and are delivered. The message carriesToandCcheaders;Bccaddresses are never written into it.Reply-Togoes in theheadersmap. Other custom headers go there too.attachmentsis an array of{"filename", "content_type", "data"}withdatabase64 encoded. Add acontent_idto send the file as an inline image.- Open and click tracking are applied only when the request asks for them. Add
"tracking": {"opens": true, "clicks": true}; inside the object each of the two defaults totrue. A request with notrackingobject is sent untouched. See tracking. scheduled_attakes an ISO 8601 time.tagsis an array of strings.- Send an
X-Idempotency-Keyheader to make a retry safe. - Recipients already on your suppression list are skipped and listed in
droppedwith a reason. - With a live key, recipients on test domains such as
example.comor.testare refused. Use a test key (mf_test_) for those, or an address you can read.
Several personalizations in one request
A SendGrid request with many personalizations is many separate emails. In Mailaki, put all the addresses in to and the per-recipient values in recipient_variables; each recipient then gets their own copy and does not see the others. For different content per message, POST /v1/messages/batch takes {"domain_id": "...", "messages": [{"from", "to", "subject", "text", "html"}]}. Batch items cannot carry attachments, custom headers or template variables.
SMTP settings
If your app sends over SMTP, these are the values to swap:
| Setting | Before | Mailaki |
|---|---|---|
| Host | smtp.sendgrid.net | mail.mailaki.com |
| Port | 587 | 587 (STARTTLS) or 465 (TLS from connect) |
| Username | The literal string apikey | Anything. It is not checked |
| Password | Your SendGrid API key | A Mailaki API key that is allowed to send |
mail.mailaki.com presents a trusted Let's Encrypt certificate on both ports, so clients that verify certificates connect without extra settings.
Provider-specific SMTP headers that carry tags, variables or options are not interpreted by Mailaki. If you rely on them, use the REST API for those messages.
Templates
The import tool creates your SendGrid templates in Mailaki. SendGrid dynamic templates need no change. Legacy substitution tags are left as written and listed for review in the result.
A template that is not valid Handlebars after that is not imported and is named in the errors of the result, so read the result and fix those by hand. The SendGrid template id (d-...) is kept as an alias, so a send through the SendGrid bridge that names it keeps working.
Send each imported template to yourself and look at it before real traffic uses it. The rest of this section is the manual route, for templates the import could not convert, or if you prefer to recreate them.
The manual route
SendGrid dynamic templates use Handlebars, and so does Mailaki, so plain placeholders, {{#if}} and {{#each}} carry over. SendGrid adds helpers of its own, such as equals, greaterThan, formatDate and insert, that are not standard Handlebars. Templates that use them need rewriting; test each one. Legacy (non-dynamic) templates with -name- style substitutions need their placeholders converted to {{name}}.
| Before | Mailaki |
|---|---|
{{name}}, {{#if}}, {{#each}} | Same |
"template_id": "d-..." | "template_id": "<uuid>" |
dynamic_template_data: {...} | variables: {...} |
-name- (legacy substitution) | {{name}} |
Mailaki templates use Handlebars: {{name}}, {{user.city}}, {{#if premium}}...{{else}}...{{/if}}, {{#unless x}}...{{/unless}} and {{#each items}}{{this.name}}{{/each}}. A variable that is not supplied renders as nothing, so check that you pass every value.
Recreate them
- List them with
GET /v3/templates?generations=dynamic, then fetch each withGET /v3/templates/{template_id}. The active version holdssubject,html_contentandplain_content. - Convert the placeholders as in the table above.
- Create each one in Mailaki. The response has the new template
id. - Keep a map from your old template identifier to the new
id. Mailaki template ids are UUIDs. - Send each template to yourself and look at it before real traffic uses it.
curl -X POST https://mailaki.com/v1/templates \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "welcome",
"subject": "Welcome, {{name}}",
"html_body": "<h1>Hi {{name}}</h1><p>Thanks for joining {{company}}.</p>",
"text_body": "Hi {{name}}, thanks for joining {{company}}."
}'
curl -X POST https://mailaki.com/v1/messages \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain_id": "YOUR_DOMAIN_UUID",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"template_id": "TEMPLATE_UUID",
"variables": {"name": "Alice", "company": "Acme"}
}'
A subject, text or html in the request replaces that part of the template. Each plan has a limit on the number of stored templates; see limits.
Suppression lists
Move these before you send anything through Mailaki. Otherwise you will mail people who bounced or unsubscribed with your old provider, and those bounces and complaints count against your new account.
The import tool does this: it adds the bounces, complaints and unsubscribes from SendGrid to your Mailaki suppression list, with their reason and date. Run it once now and once more just before the final switch. The rest of this section is the manual route, with a file.
The manual route: export from SendGrid
SendGrid keeps several lists. Each is a paged API listing with the address in the email field.
| Old list | Where to get it | Mailaki type |
|---|---|---|
| Bounces | GET /v3/suppression/bounces | bounce |
| Invalid emails | GET /v3/suppression/invalid_emails | bounce |
| Spam reports | GET /v3/suppression/spam_reports | complaint |
| Global unsubscribes | GET /v3/suppression/unsubscribes | unsubscribe |
Blocks (GET /v3/suppression/blocks) are temporary refusals, so you normally do not carry them over. Unsubscribe groups have no equivalent in Mailaki: its list is all or nothing per address. If someone left one group and you import them, they stop receiving everything, so decide group by group.
Load into Mailaki
POST /v1/suppressions/import takes a CSV file or a JSON list, up to 25 MB and 500,000 rows per import. In the portal it is Settings, Suppression List, Import. Addresses already on your list are left untouched, so importing the same file twice changes nothing.
# suppressions.csv:
# address,type,reason,date
# [email protected],bounce,550 no such user,2026-01-31T12:00:00Z
# [email protected],unsubscribe,,
curl -X POST https://mailaki.com/v1/suppressions/import \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: text/csv" \
--data-binary @suppressions.csv
curl -X POST https://mailaki.com/v1/suppressions/import \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{"address": "[email protected]", "type": "bounce"},
{"address": "[email protected]", "type": "unsubscribe"}
]'
The reply reports received, imported, skipped_existing, duplicates and invalid_count, with the invalid rows listed by line number so you can fix them. A body over 512 KB is imported in the background: the reply is 202 with a status_url to read until it says completed.
typeisbounce,complaintorunsubscribe. Rows without one get the value of the?reason=query parameter,manualby default.- Matching is exact and case-sensitive. Lowercase the addresses before importing, and send to lowercase addresses.
- Suppressions are per account, not per domain or stream.
- Imported entries are not counted in your complaint rate.
- Check the result with
GET /v1/suppressions, or download it withGET /v1/suppressions/export.
More in the docs under Import a suppression list.
Webhooks
"format": "sendgrid" on POST /v1/webhooks. Events then arrive in SendGrid's body format, whichever route you send by. Every delivery also carries Mailaki's signature headers. The rest of this section is about webhooks in Mailaki's own format.Create a webhook in the portal or with the API. See pricing for which plans include webhooks.
curl -X POST https://mailaki.com/v1/webhooks \
-H "Authorization: Bearer $MAILAKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://yourapp.com/hooks/mailaki",
"event_types": ["delivered", "bounced", "deferred", "dropped", "complained",
"opened", "clicked", "unsubscribed"]
}'
The response contains the signing secret (whsec_...), once. Store it. If you lose it, POST /v1/webhooks/{id}/rotate-secret replaces it and returns the new one, once. The old secret stops working immediately.
Mailaki sends one JSON object per event:
POST /hooks/mailaki
Content-Type: application/json
X-Mailaki-Timestamp: 1763553600
X-Mailaki-Signature: 5f2c... (hex HMAC-SHA256 of the body)
X-Mailaki-Signature-Ed25519: t=1763553600,kid=3fa1c0de9b7e4a12,sig=BASE64...
{
"id": "0193abc2-...",
"event_type": "bounced",
"message_id": "0193abc0-...",
"tenant_id": "0193aaaa-...",
"timestamp": "2026-11-19T10:00:00Z",
"data": { }
}
message_id is the id you got back when you sent. data holds details that depend on the event, such as the URL of a click. To get the recipient, look the message up with GET /v1/messages/{message_id}. id is the event id: use it to ignore an event you have already processed, because a retry delivers the same event again.
Event names
| Before | Mailaki | Sent to your webhook? |
|---|---|---|
processed | None. The 202 reply to your send is the confirmation | No equivalent |
delivered | delivered | Yes |
deferred | deferred | Yes |
bounce | bounced | Yes |
dropped | dropped | Yes |
spamreport | complained | Yes |
open | opened | Yes |
click | clicked | Yes |
unsubscribe | unsubscribed | Yes |
group_unsubscribe, group_resubscribe | None | No equivalent |
opened and clicked only happen for messages that were sent with tracking on; see the sending section.
Checking that a call is genuine
SendGrid's signed Event Webhook is optional. When it is on, you verify an ECDSA signature from the X-Twilio-Email-Event-Webhook-Signature header over the X-Twilio-Email-Event-Webhook-Timestamp value and the raw body, using the public key from the webhook settings.
Every Mailaki delivery is signed in two independent ways. Check either one, always against the raw request body:
- HMAC.
X-Mailaki-Signatureis the hex HMAC-SHA256 of the raw body, keyed with the webhook's secret. - Ed25519, with no shared secret.
X-Mailaki-Signature-Ed25519hast(Unix seconds),kid(the key id) andsig(base64). The signed bytes aret, a dot, then the raw body. The public keys are published, without authentication, athttps://mailaki.com/.well-known/mailaki/webhook-keys. Reject requests whosetis more than a few minutes from your clock.
Code for both checks is in the docs under Verifying a delivery.
- Retries. Answer with any
2xxwithin 10 seconds. A failed delivery is retried up to 7 more times: 8 attempts over about 44 hours, waiting 1 minute, 5 minutes, 30 minutes, then 2, 6, 12 and 24 hours. Pending retries are stored, so they survive a restart on Mailaki's side. - After the eighth failure the event moves to a failed list that you can read and resend:
GET /v1/webhooks/{id}/failedandPOST /v1/webhooks/{id}/failed/replay-all. - Hard bounces and complaints add the address to your suppression list automatically.
- SendGrid posts a JSON array with many events per request. Mailaki posts one event per request, so your handler reads an object, not an array.
Cutover checklist
- The domain shows as verified in Mailaki. Your SendGrid DNS records are untouched.
- The import has run, nothing is left in its
errors, and the suppression counts match what SendGrid shows. - Templates are in Mailaki and you have looked at a real send of each one.
- Your code can send through either provider, chosen by a setting. With the bridge, that setting is the base URL and the key.
- Rehearse with a test key. Run your send path with an
mf_test_key: no email is delivered and the outcome is simulated, so you can watch the events arrive. - Ask for your limit. A new Mailaki account can queue 100 emails a day until it has been reviewed. Email [email protected] with your expected volume before you move real traffic.
- Start small. Send one low-risk message type, or a small share of traffic, through Mailaki. Keep the rest on SendGrid.
- Watch. Look at the message log in the portal and at
bounced,deferredandcomplainedevents. Compare the bounce rate with what you normally see.GET /v1/messages/{id}shows the status and last error of one message, and the status page shows the service. - Increase the share in steps. When you are satisfied, switch everything.
- Keep the SendGrid account and its DNS records for a while after the switch. Its webhooks still report on mail you sent before the switch.
- When you are sure, clean up: delete SendGrid's
s1._domainkey,s2._domainkeyandem...CNAMEs and any link branding records. Revoke the old API keys.
Rolling back
Rolling back is the setting from step 4: point your code back at SendGrid. Nothing else has to change, because the old DNS records were never removed and the old account is still open.
Before you do, download GET /v1/suppressions/export from Mailaki and add any new bounces, complaints and unsubscribes to SendGrid, so the people who opted out during the trial stay opted out.
What is different
- No unsubscribe groups and no marketing campaigns, contact lists or signup forms from the SendGrid Marketing product. This guide covers the Mail Send API only.
- No
custom_args. Mailaki events carry the message id; keep your own lookup from that id to your records. - The message id arrives in the body, not in an
X-Message-Idheader. - Mailaki is in public beta. It sends real mail, but it runs in a single location and has no uptime guarantee yet.
- The bridge covers sending and a few read endpoints, not all of SendGrid's API. Webhooks can keep SendGrid's format (see the webhooks section). The sending section lists what is not mirrored.
- Tracking is opt-in per request on
POST /v1/messages: without atrackingobject there is no open pixel and no rewritten link. - No custom tracking domain. Tracked links and the open pixel use
mailaki.com. - No published SDKs yet. The client libraries are not on any package registry. Use plain HTTP, or generate a client from the OpenAPI spec.
- Outbound mail is relayed through Amazon SES. Mailaki signs it with your domain's DKIM key first.
Also in Mailaki
- Email verification: check an address before you send to it.
- Hosted file links: upload a file once and link to it in emails instead of attaching it.
- Erasing a recipient's data on request, for GDPR.
- Test mode with
mf_test_keys, and a public status page.
For prices and plan limits side by side, see Mailaki and SendGrid compared.
Stuck on something this guide does not cover? Email [email protected].