Get a Domain's configuration
GET
https://api.vercel.com/v6/domains/{domain}/configGet a Domain's configuration.
https://api.vercel.com/v6/domains/{domain}/config
const response = await fetch('https://api.vercel.com/v6/domains/domain/config?projectIdOrName=string&strict=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);Response
{ "configuredBy": "A", "acceptedChallenges": [], "recommendedIPv4": [ { "rank": "123", "value": [] } ], "recommendedCNAME": [ { "rank": "123", "value": "string" } ], "misconfigured": "false"}AuthorizationbearerToken
Default authentication mechanism
The project id or name that will be associated with the domain. Use this when the domain is not yet associated with a project.
When true, the response will only include the nameservers assigned directly to the specified domain. When false and there are no nameservers assigned directly to the specified domain, the response will include the nameservers of the domain's parent zone.
200Success
How we see the domain's configuration. -
CNAME: Domain has a CNAME pointing to Vercel. - A: Domain's A record is resolving to Vercel. - http: Domain is resolving to Vercel but may be behind a Proxy. - dns-01: Domain is not resolving to Vercel but dns-01 challenge is enabled. - null: Domain is not resolving to Vercel.Recommended IPv4s for the domain. rank=1 is the preferred value(s) to use. Only using 1 ip value is acceptable.
Recommended CNAMEs for the domain. rank=1 is the preferred value to use.
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
410Error