Domain verification via API
- Are there any plans to offer domain verification checking via the API? Even a rate-limited call would great!
- Are there any plans to extend the domain verification feature to follow CNAME records when they don't match Mailgun's domain (e.g. mxa.mydomain.com CNAME to mxa.mailgun.com)?
These two features would greatly increase the usability of a white-labeled service powered by Mailgun.
Hello,
We’ve recently made this feature available through our API. Please see https://documentation.mailgun.com/en/latest/api-domains.html#domains for more details.
Best,
Josh
-
Ajay commented
Hello,
I want to implement mailgun informations in client side-
Dispaly DNS informations using mailgun API ?
Validate DNS using mailgun API ?
-
Jay Pfaffman commented
Please? Even if I could have a direct link that I could send my clients in an email. I even tried seeing if posting what the button did would work, but no joy.
-
Jay Pfaffman commented
Even being able to provide a link to a client for them to click after they had updated their DNS would be something.
As someone else already pointed out, there's already an endpoint. It wouldn't be hard to add this to the API.
-
Petr Vnenk commented
How is this not implemented yet? It's the one feature that makes it impossible to use the API fully. Is it really more complicated than it looks?
-
Brenton commented
You already have a button on your site that does the task... We just need a endpoint linking to it.
-
Anonymous commented
This would be great! +1
-
Oliver Castle commented
+1000 for this its madness that you cant verify a domain through the api
-
Anonymous commented
+1
-
Sam Livingston-Gray commented
I can't upvote a verification API endpoint enough: I'm writing a drip email service to roll out to thousands of companies, and I don't relish the thought of starting each day by scrolling through them looking for "verify" buttons to push.
-
DigitalAPI commented
Yes, I do Agree. Add a Method in Domains API to verify a Domain.
-
Anonymous commented
Need the check-dns too please!
-
Bastian commented
Would be very important for us! The API Method should do exactly the same as the "Check DNS Record Now" Button inside your backend
-
Jonathan commented
Something like `PUT /domains/<domain>/check-dns` seems appropriate.
-
Jonathan commented
Yes, agreed, this would be great. Having to wait for automatic verification takes much too long.
-
elbowlobstercowstand commented
I'm in the same boat.
1) Please mailgun! Add record verification to the API.
2) And extend the CNAME verification to allow chained CNAME records, as @kevin suggested (in bullet 2 of OP)Currently, you can *not* verify DNS records with the API. You either have to mash the "Verify records" button in the mailgun control panel OR wait for their automated process to pick up the changes. The former is quite a hassle in 2015 if you're adding 100s of domains, and the latter takes a lot longer than expected.
I notice my DNS changes will propagate in an hour, yet mailgun won't reflect it until a manual button push.
Here's a relevant part of my support thread with mailgun (ticket 239180 ):
Hi Mailgun,
Thanks for the thorough response. Let me make sure I understand you correctly:
You're saying that either 1) the automated, internal mailgun process—NOT accessible via API or 2) a manual push of the control panel button… can update the records in your mailgun system. These two processes *exclusively* have the ability to set the domain as valid and ready to be used.
Whereas issuing a GET request only extracts what happens to be in the mailgun system at the time.
Is that all correct? [Yes. They confirmed this.]
If true, how many bags of peanut m&ms will it take to get this added (and executed) as a new feature? :) [They would not yet take bribes. Try different candy.]
The reason I want to be able to verify via API is likely obvious. But in case not, here's the rationale:
• • •
My users come to me to help them mail stuff to people. I want them setup and sending fast—hours, not days. The quicker their DNS is verified, the quicker they can send. That means higher retention since I'm rewarding my customers quick by solving their immediate need: "I need to send mail, now."
That all boils down to me spending more and more with you guys.
This would probably help a lot of your customers.
Unfortunately, with the current system, we need to wait on the mailgun automated process to update the db. Or, manually intervene and push that button on their behalf. For now, that will be my workaround. I'll have the user push a button that says, "my records are set." That will email me. Then I'll manually go in my mailgun account and mash their respective "verify DNS" button every hour.
• • •
Will you add verifying the DNS via API as a feature request? (Or is there a way I should do it?) And tell me where to send the M&Ms?? :)
Thanks!
-
Pavox BV commented
It seems there is no API request to verifiy DNS records ?
I would really like to automate this because Mailgun does not check often... Now I have to manually check all domains. -
Wade Burdette commented
I would like to fully create a domain from my code including calling the code behind the verify button so it becomes live without user intervention.