Incorrect Domain Verification response in Vercel REST API

While adding a domain via API, getting a response as verified:true but in the dashboard it shows to add “A” & “CNAME” record

API URL : https://api.vercel.com/v10/projects/prj_4iO20RY6cTVm4YxArvNUnEQwGB2r/domains?teamId=team_u4IOKaJ9pAh7XJRDVxfghTc9

Body:

{
    "name": "vigneshgupta.me"
}

MAIN Question: How can I get the accurate response from Vercel API for my application to allow users to add custom domains.

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.

Hi @vignesh-gupta, thanks for reaching out in the community.

Adding a domain might not reflect the correct verification status as it is a multistep process. You can use the Get Domain Configuration endpoint or use the Vercel SDK as shown in the following example: