Skip to content
Docs

Documentation

The MyDomainsHub Mail API sends transactional email — receipts, sign-in links, alerts — from your own domain, with one HTTP call. JSON in and out; no SDK needed. Or send over SMTP from the program you already have.

Start here

Writing code? The quickstart takes you from a verified domain to your first email. Already have an app that sends email — WordPress, Laravel, Django? Point its SMTP settings at us.

Moving from Resend? Keep its Node.js SDK: a new key and one base URL.

The basics

WhatHow
Base addresshttps://emails.mydomainshub.com/api/v1
AuthenticationAuthorization: Bearer mdh_live_…, a key from the dashboard
FormatJSON in and out, UTF-8
Errors{ "name", "message", "statusCode" } with the status — see Errors
Every answercarries x-request-id: quote it when you write to us
SMTPsmtp.mydomainshub.com, port 465 (SSL/TLS), username mydomainshub, an API key as the password — see SMTP
Described/api/v1/openapi.json, OpenAPI 3.1

Every guide

  • Quickstart — From a verified domain to your first email, with curl, Node, Python or PHP.
  • SMTP — Send from WordPress, Laravel, Django or any SMTP program: the host and an API key.
  • Switching from Resend — Keep Resend’s Node.js SDK: change the API key and the base URL.
  • API reference — Every endpoint, its fields and its answers, generated from the API’s own schemas.
  • Errors — The error shape, each name and status, and what to do about it.
  • Limits — Per email, per request, per key and per plan.
  • Idempotency — Retry safely: the same request with the same key sends once.
  • Scheduling — Send later, move it, or cancel it before it goes.
  • Statuses and events — What each status means, and how events move an email along.
  • Webhooks — Events sent to your own server: the payload, checking the signature, and retries.
  • Domains and DNS — Verifying the domain you send from. Being written.