Namespace: hs/domains

hs/domains

A collection of methods related to the Domains API

Methods

hs/domains.getDomain (domainId)Promise asyncstatic

Get domain by ID

Name Type Description
domainId int
Returns:
Type Description
Promise
Example
const hs = new HubspotClient(props);
hs.domains.getDomain(domainId).then(response => console.log(response));

hs/domains.getDomains (opts)Promise asyncstatic

Get all domains for a portal

Name Type Description
opts object
Properties:
Name Type Description
opts.limit int
opts.offset int
opts.id int
opts.domain string
opts.is_resolving boolean
opts.created int
opts.primary_site_page string
Returns:
Type Description
Promise
Example
const hs = new HubspotClient(props);
hs.domains.getDomains(opts).then(response => console.log(response));