API endpoint to trigger on-demand DNS re-check for a sending domain
Hi Mailtrap team,
We're building a multi-tenant platform where each workspace configures its own sending domain through your Sending Domains API. After a user adds the DNS records, we'd like to give them immediate feedback on whether the domain is verified — ideally by triggering a DNS re-check on demand, the same way the "Re-check DNS Records" button does in your dashboard.
We've gone through the available options and hit a wall:
GET /api/accounts/{account_id}/sending_domains/{id} returns the last known status, but does not appear to trigger a fresh DNS check — the dns_verified_at timestamp and record statuses don't change on repeated calls.
Your automatic re-check runs hourly, so a user who just added their records may have to wait up to an hour to see them pass.
We couldn't find any re-check / re-verify endpoint in the public API, nor a webhook event for domain/DNS verification status changes.
Our request: could you expose a public, token-authenticated endpoint to trigger an on-demand DNS re-check for a sending domain ? Alternatively, a webhook fired when a domain's verification status changes would also solve our use case.
This would let us confirm a domain right after the user sets up DNS, instead of polling and waiting for the hourly cycle.
Thanks a lot!
Log in to comment and vote
Comments1
Marta from Support Team
Jul 1
Hi there,
Thanks for taking the time to share this.
I’ve logged this for our product team to review in an upcoming planning round. We really appreciate you taking the time to help us improve.