Skip to main content
POST
/
domains
/
register
TypeScript
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.domains.register();

  console.log(result);
}

run();
{
  "domain": "<string>",
  "status": "<string>",
  "expiration": 123
}
Domain registration is only available for certain Enterprise customers. Please contact us to get access.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
domain
string
required

The domain to claim. We only support .link domains for now.

Minimum string length: 1
Example:

"acme.link"

Response

The domain was registered.

domain
string
required

The domain name.

status
string
required

The status of the domain registration.

expiration
number | null
required

The expiration timestamp of the domain (Unix timestamp in milliseconds).