POST /v1/domains
Creating a domain returns it in pending status along with a records array — DKIM (a CNAME), SPF, and DMARC (both TXT). Publish all of them at your DNS provider, then verify to flip the domain to verified.
Body
The fully-qualified domain or subdomain to send from, for example
mail.acme.com. A subdomain dedicated to sending is recommended so DMARC policy on your root domain is untouched.X-Drin-Product header; project-scoped keys omit it. See Authentication.
Request
Response
201 Created — the domain plus the records to publish. Each record carries a purpose (dkim, spf, dmarc) and a verified flag that stays false until the record resolves.
No DNS yet? You can send from a shared onboarding domain in test mode without adding a domain at all — it just can only deliver to your own address. See the Quickstart.
