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.Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.domains.getDomainVerificationRecord({ domain: "example.com", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", });
console.log(result);}
run();Response
{ "txtRecord": "string", "verificationDomain": "string"}AuthorizationbearerToken
Default authentication mechanism