Mailcandor accepts sends in Resend’s, SendGrid’s and Postmark’s shapes, so the switch is usually a base URL and a key. When it does not work, check these in order.
1. Point the SDK at Mailcandor
| Coming from | Change | Node example |
|---|---|---|
| Resend | Base URL to https://api.mailcandor.com/v1 |
RESEND_BASE_URL=https://api.mailcandor.com/v1 |
| SendGrid | Base URL to https://api.mailcandor.com |
sgMail.client.setDefaultRequest('baseUrl', 'https://api.mailcandor.com') |
| Postmark | Host to api.mailcandor.com |
new postmark.ServerClient(key, { requestHost: 'api.mailcandor.com' }) |
| SMTP | Host smtp.mailcandor.com, user mailcandor, password a Mailcandor key |
See SMTP connection failed |
The endpoints are POST /v1/emails (Resend shape), POST /v3/mail/send (SendGrid) and POST /email and /email/batch (Postmark, with the X-Postmark-Server-Token header).
2. Use a Mailcandor key
In every case the key is a Mailcandor API key starting with mc_live_. An old re_, SG. or Postmark server token gives 401 invalid_api_key. Check what is loaded:
curl https://api.mailcandor.com/v1/whoami -H "Authorization: Bearer $KEY"
See 401 invalid API key.
3. Verify your domain on Mailcandor
Being verified at your old provider does not count. Add the domain under Domains, publish its records and press Check DNS now. Until then:
403 domain_not_found: the domain is not added on Mailcandor.403 domain_not_verified: added but not verified yet.
The old provider’s records can stay while you switch. See 403 errors.
4. Templates are not carried over
- SendGrid: a
template_idis refused: “SendGrid dynamic templates are not supported. Send the rendered html in content, or use a Mailcandor template.” - Postmark:
TemplateIdis refused: “Postmark templates are not supported. Send HtmlBody, or use a Mailcandor template.”
Render the HTML in your app, or create a Mailcandor template and send it with template: { id, variables } on POST /v1/emails.
5. Read errors in the shape you expect
- SendGrid endpoint: errors look like SendGrid’s:
{"errors": [{"message", "field"}]}, with validation errors as400. - Postmark endpoint: each message answers in Postmark’s shape. A refused message comes back with
ErrorCode: 300and the reason inMessage, and the HTTP status can still be200. CheckErrorCodeon every result, not only the status code. Authentication errors use Mailcandor’s own401shape. - Resend shape: Mailcandor’s own error shape,
{"error": {"type", "message", "field"}}.
6. Update your webhooks
Events, webhooks and the log are Mailcandor’s own. Add an endpoint under Webhooks and map the events you used:
| You used | Mailcandor event |
|---|---|
| delivered | email.delivered |
| bounce / hard bounce | email.bounced (check bounce.type) |
| spam report | email.complained |
| open, click | email.opened, email.clicked |
| inbound parse | email.received |
Coming from Resend, the event names already match and Svix-style verification works with the secret’s mcws_ prefix swapped for whsec_. From SendGrid or Postmark, rewrite the handler; see Verify webhook signatures and the events reference.
7. Mind the new limits
- Rate limits are per team: 5, 10 or 50 requests a second by plan.
- Starter allows 100 emails a day and 3,000 a month.
- 50 recipients per email, 100 emails per batch, 40 MB of attachments.
A new sending path also deserves a gentle start: follow the warm-up pace for the first days.
If it does not work
- 404 Not Found. The base URL is wrong: Resend needs
/v1on the end, SendGrid and Postmark do not. - Some emails send, some do not. Check per-message results in batches, especially Postmark’s
ErrorCode. - Suppressions from the old provider. They do not move over. Add them under Suppressions (up to 1,000 at a time) so you do not mail bounced addresses again.
See Switch from Resend, from SendGrid, from Postmark and the API reference.