Register a domain for the authenticated workspace. Only available for Enterprise Plans.
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 }
Default authentication mechanism
The domain to claim. We only support .link domains for now.
1
"acme.link"
The domain was registered.
The domain name.
The status of the domain registration.
The expiration timestamp of the domain (Unix timestamp in milliseconds).
Was this page helpful?