Skip to main content
POST
/
v1
/
registrar
/
domains
/
buy
buyDomains
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.domainsRegistrar.buyDomains({
    domains: [],
    contactInformation: {
      firstName: "Leonie",
      lastName: "Johnston",
      email: "Anna_Fisher13@hotmail.com",
      phone: "(688) 699-0656",
      address1: "<value>",
      city: "Rennerland",
      state: "New Jersey",
      zip: "70054",
      country: "Peru",
    },
  });

  console.log(result);
}

run();
{
  "orderId": "<string>",
  "_links": {}
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
domains
object[]
required
Minimum length: 1
contactInformation
object
required

The contact information for the domain. Some TLDs require additional contact information. Use the Get contact info schema endpoint to retrieve the required fields.

Response

Success

orderId
string
required
I