Register a domain for the authenticated workspace. Only available for Enterprise Plans.
Go
package main import( "context" dubgo "github.com/dubinc/dub-go" "github.com/dubinc/dub-go/models/operations" "log" ) func main() { ctx := context.Background() s := dubgo.New( dubgo.WithSecurity("DUB_API_KEY"), ) res, err := s.Domains.Register(ctx, &operations.RegisterDomainRequestBody{ Domain: "acme.link", }) if err != nil { log.Fatal(err) } if res != nil { // handle response } }
{ "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?