Skip to content
Domain SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Provider capabilities

Detect optional list, verification, certificate, apex, and wildcard behavior.

if (domains.capabilities.explicitVerification) {
  await domains.verify("app.customer.com");
}

Basic add, get, refresh, and remove do not require capability checks. Calling an unsupported optional operation throws UNSUPPORTED_OPERATION with the provider ID.

createSubdomainClient exposes the same wildcard check as supportsWildcard. Its provisionWildcard methods fail with UNSUPPORTED_OPERATION before calling a provider that cannot attach wildcard hostnames.

Read next: Provider overview.

Last updated on