Domains
Returns the domains configured in HubSpot.
Table-Specific Information
Domains represent any domains you have registered with HubSpot to host your HubSpot blogs and content optimization system on.
SELECT
When selecting domains, they can only be filtered by the Id, CreatedAt, Domain, IsResolving, and PrimarySitePage columns. CreatedAt can be used with the > and < comparisons to form a range. For example:SELECT * FROM Domains WHERE CreatedAt >= '1/1/2014' AND CreatedAt <= '10/31/2014'
SELECT * FROM Domains WHERE Id = '123456789'
Columns
| Name | Type | References | Filterable | Description |
| Id [KEY] | String | True | The unique Id of this domain. | |
| Domain | String | The actual domain or sub-domain, for example, www.hubspot.com. | ||
| IsPrimaryBlogPost | Boolean | Indicates whether the domain is the primary domain for blog posts. | ||
| IsPrimaryEmail | Boolean | Indicates whether the domain is the primary domain for email pages. | ||
| IsPrimarySitePage | Boolean | Indicates whether the domain is the primary domain for site pages. | ||
| IsPrimaryLandingPage | Boolean | Indicates whether the domain is the primary domain for landing pages. | ||
| IsPrimaryKnowledge | Boolean | Indicates whether the domain is the primary domain for knowledge pages. | ||
| IsResolving | Boolean | Indicates whether the DNS for this domain is optimally configured for use with HubSpot. | ||
| IsManuallyMarkedAsResolving | Boolean | Indicates whether the domain has been manually marked as resolving. | ||
| IsHTTPSEnabled | Boolean | Indicates whether Secure Sockets Layer (SSL) is enabled for the domain. | ||
| IsHTTPSOnly | Boolean | Indicates whether the domain is accessible only via SSL. | ||
| IsSSLEnabled | Boolean | Indicates whether SSL is enabled for the domain. | ||
| IsSSLOnly | Boolean | Indicates whether the domain is accessible only via SSL. | ||
| IsUsedForBlogPost | Boolean | Indicates whether the domain is used for CMS blog posts. This column is deprecated. | ||
| IsUsedForSitePage | Boolean | Indicates whether the domain is used for CMS site pages. This column is deprecated. | ||
| IsUsedForLandingPage | Boolean | Indicates whether the domain is used for CMS landing pages. This column is deprecated. | ||
| IsUsedForEmail | Boolean | Indicates whether the domain is used for CMS email web pages. This column is deprecated. | ||
| IsUsedForKnowledge | Boolean | Indicates whether the domain is used for CMS knowledge pages. This column is deprecated. | ||
| ExpectedCname | String | The expected CNAME record for the domain. | ||
| CorrectCname | String | The expected CNAME record for the domain. | ||
| RedirectTo | String | The URL this domain redirects to. | ||
| SecondaryToDomain | String | Specifies the domain to which this domain is secondary. | ||
| CreatedAt | Datetime | The date and time when the domain was created. | ||
| UpdatedAt | Datetime | The date and time when the domain was last updated. |