Basic

Get a single domain

Changed on

Returns a single domains with the id specified.

get/cms/domains/2026-09/{domainId}

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/cms/domains/2026-09/{domainId}
  • Auth
    • OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: cms.domains.read
    • or OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: content
    • or OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: cms.domains.write
    • or OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: cms.knowledge_base.settings.read
    • or OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: cms.knowledge_base.settings.write

Path parameters

domainIdstring required

The unique identifier of the domain to retrieve.

Response

successful operation

correctCnamestring required

The expected CNAME record for the domain.

createdstring date-time required

The date and time when the domain was created.

domainstring required

The actual domain or sub-domain. e.g. www.hubspot.com

idstring required

The unique ID of this domain.

isResolvingboolean required

Whether the DNS for this domain is optimally configured for use with HubSpot.

isSslEnabledboolean required

Indicates whether SSL is enabled for the domain.

isSslOnlyboolean required

Indicates whether the domain is accessible only via SSL.

isUsedForBlogPostboolean required

Whether the domain is used for CMS blog posts.

isUsedForEmailboolean required

Whether the domain is used for CMS email web pages.

isUsedForKnowledgeboolean required

Whether the domain is used for CMS knowledge pages.

isUsedForLandingPageboolean required

Whether the domain is used for CMS landing pages.

isUsedForSitePageboolean required

Whether the domain is used for CMS site pages.

manuallyMarkedAsResolvingboolean required

Indicates whether the domain has been manually marked as resolving.

primaryBlogPostboolean required

Indicates whether the domain is the primary domain for blog posts.

primaryEmailboolean required

Indicates whether the domain is the primary domain for email pages.

primaryKnowledgeboolean required

Indicates whether the domain is the primary domain for knowledge pages.

primaryLandingPageboolean required

Indicates whether the domain is the primary domain for landing pages.

primarySitePageboolean required

Indicates whether the domain is the primary domain for site pages.

secondaryToDomainstring required

Specifies the domain to which this domain is secondary.

updatedstring date-time required

The date and time when the domain was last updated.

Changes

  • 2026-091d4cd9864d3aRevision changes
    • info

      the security scope cms.domains.read was added to the endpoint's security scheme oauth2

    • info

      the security scope content was removed from the endpoint's security scheme oauth2

  • 2026-09170e068a8c75Revision changes
    • info

      the security scope cms.domains.write was added to the endpoint's security scheme oauth2

    • info

      the security scope content was removed from the endpoint's security scheme oauth2