{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/email-api/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Verify Your Domain","siteUrl":"https://dev.mailjet.com/","projectTitle":"Mailjet Developer Documentation","description":"Improve deliverability by adding SPF and DKIM DNS TXT records for your Mailjet sending domain. Setup links for GoDaddy, Cloudflare, Route 53, and others.","image":"https://dev.mailjet.com/og-image.png","lang":"en-US","keywords":["Mailjet API","Email API","Content API","SMTP Relay","transactional email","email delivery","Send API","email templates","developer documentation"],"meta":[{"name":"og:type","content":"website"},{"name":"og:site_name","content":"Mailjet Developer Documentation"},{"name":"twitter:card","content":"summary_large_image"},{"name":"robots","content":"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{"name":"googlebot","content":"index, follow, max-snippet:-1, max-image-preview:large"}],"jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://dev.mailjet.com/#organization","name":"Mailjet","alternateName":"Sinch Mailjet","url":"https://www.mailjet.com","logo":"https://assets.mailjet.com/lib/images/mailjetLogo/mj_logo_with_text_color.png","parentOrganization":{"@type":"Organization","name":"Sinch","url":"https://www.sinch.com"}},{"@type":"WebSite","@id":"https://dev.mailjet.com/#website","name":"Mailjet Developer Documentation","description":"Official developer documentation for the Mailjet Email API, Content API and SMTP Relay.","url":"https://dev.mailjet.com/","inLanguage":"en-US","publisher":{"@id":"https://dev.mailjet.com/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://dev.mailjet.com/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]},"llmstxt":{"hide":false,"title":"Mailjet Developer Documentation","description":"Developer documentation for the Mailjet Email API, Content API and SMTP Relay - guides, API references and code samples for sending, templating and tracking email at scale.","details":{"content":"Mailjet (part of Sinch) provides APIs for sending and managing email.\n\nThis documentation covers four main areas:\n\n- **Email API** - the Send API (v3 and v3.1) for transactional and marketing email,\n  plus contact management, segmentation, campaigns, statistics, webhooks, the Parse API\n  and the Mailjet Templating Language.\n- **Content API** - programmatic management of email templates, template contents,\n  images, labels and authentication tokens (v1).\n- **SMTP Relay** - sending through Mailjet's SMTP servers, including custom headers.\n- **API Reference** - the complete, generated reference for every endpoint, built directly\n  from the OpenAPI specifications.\n\nBase URL for all REST APIs: `https://api.mailjet.com`.\nAuthentication uses HTTP Basic auth with an API key and secret key.\n\n## Machine-readable entry points\n\nPrefer these when you need the API surface in as few requests as possible:\n\n- `/openapi/openapi-mailjet.md` - the **complete** Email API reference (every endpoint,\n  grouped by resource) as a single Markdown document.\n- `/openapi/openapi-passport.md` - the **complete** Content API reference as a single\n  Markdown document.\n- `/_bundle/openapi/openapi-mailjet.yaml` - the raw, fully bundled OpenAPI 3 description\n  of the Email API.\n- `/_bundle/openapi/openapi-passport.yaml` - the raw, fully bundled OpenAPI 3 description\n  of the Content API.\n- `/sitemap.xml` - every indexable URL on this site.\n\nEvery page on this site is also available as clean Markdown by appending `.md` to its URL."},"sections":[{"title":"Email API","description":"Sending, contacts, campaigns, statistics, webhooks and templating.","includeFiles":["docs/email-api/**/*.md"],"excludeFiles":[]},{"title":"Content API","description":"Manage templates, template contents, images, labels and tokens.","includeFiles":["docs/content-api/**/*.md","docs/content-api.md"],"excludeFiles":[]},{"title":"SMTP Relay","description":"Send email through Mailjet's SMTP servers.","includeFiles":["docs/smtp-relay/**/*.md"],"excludeFiles":[]},{"title":"API Reference","description":"Complete generated reference for every Mailjet API endpoint.","includeFiles":["openapi/openapi-mailjet.yaml","openapi/openapi-passport.yaml","docs/api-reference/**/*.md"],"excludeFiles":[]},{"title":"Migrating from Mandrill","description":"Guides for switching from Mandrill to Mailjet.","includeFiles":["docs/mandrill/**/*.md"],"excludeFiles":[]}],"excludeFiles":[]},"priority":0.8},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"verify-your-domain","__idx":0},"children":["Verify Your Domain"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before you get started, we strongly recommend that you verify the domain or subdomain that you will use for sending emails."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Go to your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account settings"]}," and add the domain you want to use for sending emails. Once the domain is successfully set up we generate an SPF and a DKIM record for you. Please ensure that you set those up properly."]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://en.wikipedia.org/wiki/Sender_Policy_Framework"},"children":["SPF"]}," is a DNS TXT record and acts as a filter. It is used to specify a whitelist of IP addresses. This whitelist can be queried by mail clients to see whether a sender IP is in the list."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.dkim.org/#introduction"},"children":["DKIM"]}," is another DNS TXT record and contains a public key. We automatically generate a public/private key pair for you after registration. The private key is used to sign every message you send. Email clients can then check your DKIM record and use it to verify the signature. Together, SPF and DKIM form the technical basis of email deliverability."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tip: You can find both records together with instructions in your account settings. Go to your account setup page and click on the info button for your domain."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once your domain is verified you should add the SPF and DKIM records to your domain using the domain configuration tool of your DNS Provider."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can refer to these step-by-step user guides on creating DNS records:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["OVH ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://help.ovhcloud.com/csm/en-dns-create-dns-zone?id=kb_article_view&sysparm_article=KB0051666"},"children":["SPF and DKIM"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Go Daddy ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.godaddy.com/help/set-up-spf-dkim-or-dmarc-records-for-my-hosting-email-40810"},"children":["SPF and DKIM"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["DreamHost ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://help.dreamhost.com/hc/en-us/articles/216106197-Add-an-SPF-record"},"children":["SPF"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://help.dreamhost.com/hc/en-us/articles/215029758-DKIM-records"},"children":["DKIM"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1&1 Ionos ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.ionos.com/help/domains/connecting-a-domain-with-an-external-website/connecting-your-domain-with-mailjet/?utm_source=search&utm_medium=global&utm_term=Mailjet&utm_campaign=HELP_CENTER&utm_content=/help/domains/customizing-your-dns-settings-to-link-your-domains-to-external-services/using-a-domain-for-sending-emails-with-mailchimp/"},"children":["SPF and DKIM"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can also visit the offical and third-party documentations for DNS providers :"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Amazon Route 53: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html#TXTFormat"},"children":["SPF and DKIM"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Bluehost: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.bluehost.com/help/article/txt-records"},"children":["General DNS Setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CloudFlare: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://support.cloudflare.com/hc/en-us/articles/360019093151-Managing-DNS-records-in-Cloudflare"},"children":["DNS setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dreamhost: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://help.dreamhost.com/hc/en-us/articles/216106197"},"children":["SPF"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://help.dreamhost.com/hc/en-us/articles/215029758"},"children":["DKIM"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["DynDNS: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.hostgator.com/help/article/basics-of-dns-records#txtrecords"},"children":["General DNS setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GoDaddy: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.godaddy.com/help/add-a-txt-record-19232"},"children":["SPF and DKIM"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["HostGator: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://support.hostgator.com/articles/cpanel/how-to-change-dns-zones-mx-cname-and-a-records"},"children":["General DNS setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Hover: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://support.hover.com/support/solutions/articles/201000064728-managing-dns-records-at-hover"},"children":["General DNS setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Namecheap: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.namecheap.com/support/knowledgebase/article.aspx/9214/31/cpanel-email-deliverability-tool--spf-and-dkim-records"},"children":["DNS Setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Network Solutions: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.networksolutions.com/help/article/manage-dns-adns-records"},"children":["General DNS setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Rackspace: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.rackspace.com/docs/create-an-spf-txt-record"},"children":["General DNS setup"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Register.com: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.networksolutions.com/help/article/spf-records"},"children":["SPF"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.networksolutions.com/help/article/adjust-dkim-settings"},"children":["DKIM"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["United Domains: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.united-domains.de/help/faq-article/wie-kann-ich-einen-txt-eintrag-fuer-meine-domain-hinterlegen/"},"children":["DKIM and SPF (in German)"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["With some DNS providers the setup can be quite tedious, but we would be happy to help you out. Just ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.mailjet.com/support"},"children":["contact our support"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The validation of a domain can also be initiated with API calls."]}]}]},"headings":[{"value":"Verify Your Domain","id":"verify-your-domain","depth":1}],"frontmatter":{"title":"Mailjet Getting Started","seo":{"description":"Improve deliverability by adding SPF and DKIM DNS TXT records for your Mailjet sending domain. Setup links for GoDaddy, Cloudflare, Route 53, and others.","priority":0.8,"title":"Verify Your Domain"}},"lastModified":"2026-08-26T10:53:57.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/email-api/getting-started/verify-your-domain","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}