Get a Domain's configuration
GET
/__remote/api.vercel.com/v6/domains/{domain}/configGet a Domain's configuration.
/__remote/api.vercel.com/v6/domains/{domain}/config
const response = await fetch('/__remote/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
{ "acceptedChallenges": [], "configuredBy": "A", "recommendedCNAME": [ { "rank": "123", "value": "string" } ], "recommendedIPv4": [ { "rank": "123", "value": [] } ], "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 Edgenivo. - A: Domain's A record is resolving to Edgenivo. - http: Domain is resolving to Edgenivo but may be behind a Proxy. - dns-01: Domain is not resolving to Edgenivo but dns-01 challenge is enabled. - null: Domain is not resolving to Edgenivo.Recommended CNAMEs for the domain. rank=1 is the preferred value to use.
Recommended IPv4s for the domain. rank=1 is the preferred value(s) to use. Only using 1 ip value is acceptable.
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