Typescript
import { Vercel } from "@vercel/sdk"; const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>", }); async function run() { const result = await vercel.domainsRegistrar.getDomainAuthCode({ domain: "ruddy-coil.org", }); console.log(result); } run();
{ "authCode": "<string>" }
Get the auth code for a domain
Default authentication mechanism
Success