add()
Adds a new domain to the instance. Useful in the case of multi-domain instances, allows adding satellite domains to an instance.
Returns the created Domain object.
function add(params: AddDomainParams): Promise<Domain>const response = await clerkClient.domains.add({
is_satellite: true,
name: 'example.com',
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/domains. See the BAPI reference for more information.
Feedback
Last updated on