Vercel API domain verification return wrong response

Vercel provides an API for domain management. However, I encountered an issue with the domain verification process.

I tested both of the following endpoints:

According to the documentation, if a domain is not verified, the response should include a verification challenge like this:

{
  "verified": false,
  "verification": [
    {
      "type": "TXT",
      "domain": "_verification.example.com",
      "value": "vercel-site-verification=abcd1234efgh5678",
      "reason": "We need to verify that you own the domain by checking for a TXT record."
    }
  ]
}

However, both endpoints are currently returning "verified": true even for domains that have not been verified, and no verification challenge data is included.

This behavior seems incorrect and inconsistent with the documentation.
Please look into this and fix the issue.

Thank you.

The domain troubleshooting guide can help with most custom domain configuration issues. You might be able to use that guide to solve it before a human is available to help you. Then you can come back here and share the answer for bonus points.

You can also use v0 to narrow down the possibilities.

I’m working on a multi tenant app and I’ve had this EXACT issue over the last few days. Vercel Support replied once saying they couldn’t replicate it. I’ve given them more info but haven’t heard back yet. Have you had any luck?

This might be the answer! Found in Adding domain via API always returns verified = true - #6 by amyegan