Get Domain Verification Record
GET
https://api.vercel.com/v9/domains/{domain}/verificationGet the TXT verification record needed to claim ownership of a domain for the authenticated team. The caller must add this TXT record to
_vercel.{domain} in their DNS configuration, then call POST /domains/:domain/claim to complete the ownership transfer. Records expire at the returned expiresAt (at most 24 hours) or when ownership changes.https://api.vercel.com/v9/domains/{domain}/verification
const response = await fetch('https://api.vercel.com/v9/domains/domain/verification?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
{ "expiresAt": "123", "txtRecord": "string", "verificationDomain": "string"}AuthorizationbearerToken
Default authentication mechanism
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.
404Error
409Error
410Error