Retrieve project domains by project by id or name
https://api.vercel.com/v9/projects/{idOrName}/domainsid or name in the URL.const response = await fetch('https://api.vercel.com/v9/projects/idOrName/domains?production=value&target=string&customEnvironmentId=string&gitBranch=string&redirects=value&redirect=string&verified=value&limit=123&since=123&until=123&order=value&teamId=string&slug=string', { method: 'GET', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', },});
const data = await response.json();console.log(data);{ "domains": [ { "name": "Example Name", "apexName": "Example Name", "projectId": "example_id", "redirect": "string", "redirectStatusCode": "301", "gitBranch": "string", "customEnvironmentId": "example_id", "updatedAt": "123", "createdAt": "123", "verified": "false", "verification": [ { "type": "string", "domain": "string", "value": "string", "reason": "Customer requested refund" } ] } ], "pagination": { "count": "123", "next": "123", "prev": "123" }}Default authentication mechanism
true.