Buy multiple domains
POST
/__remote/api.vercel.com/v1/registrar/domains/buyBuy multiple domains at once
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.domainsRegistrar.buyDomains({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", requestBody: { domains: [], contactInformation: { firstName: "Leonie", lastName: "Johnston", phone: "(688) 699-0656", address1: "<value>", city: "Rennerland", state: "New Jersey", zip: "70054", country: "GF", }, }, });
console.log(result);}
run();Response
{ "orderId": "example_id", "_links": "value"}Errors
{ "status": "400", "code": "domain_too_short", "message": "string"}AuthorizationbearerToken
Default authentication mechanism
application/json
The contact information for the domain. Some TLDs require additional contact information. Use the Get contact info schema endpoint to retrieve the required fields.
400There was something wrong with the request
429TooManyRequests