Register a domain for the authenticated workspace. Only available for Enterprise Plans.
Ruby
require 'dub' Models = ::OpenApiSDK::Models s = ::OpenApiSDK::Dub.new( security: Models::Shared::Security.new( token: 'DUB_API_KEY', ), ) req = Models::Operations::RegisterDomainRequestBody.new( domain: 'acme.link', ) res = s.domains.register(request: req) unless res.nil? # handle response end
{ "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?