Domain SDK
Concepts

Provider capabilities

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

verify-if-supported.ts
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.