> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.jp/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve all domains

export const ScopesList = ({scopes = [], description = "この API には、次のいずれかのスコープが必要です。"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "サポートされる製品",
    description: "次のいずれかの製品またはそれ以上が必要です。",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "無料ツール",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="FREE" salesLevel="FREE" serviceLevel="FREE" cmsLevel="FREE" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'cms.domains.read',
  'content',
  'cms.domains.write',
  'cms.knowledge_base.settings.write',
  'cms.knowledge_base.settings.read'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2026-03/cms-domains-v2026-03.json GET /cms/domains/2026-03
openapi: 3.0.1
info:
  title: ドメイン
  description: Content Domains Service
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-api-use-case: 現在接続されている全てのドメインを取得して、特定のアカウントで公開されているサイトを確認できます。
  x-hubspot-introduction: >-
    ドメイン管理APIを使用して、HubSpotアカウントに接続されたドメインに関する情報を返します。現在接続されている全てのドメインのデータを返すことも、IDを基準に1つのドメインのデータを返すこともできます。
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Basic
paths:
  /cms/domains/2026-03:
    get:
      tags:
        - Basic
      operationId: get-/cms/domains/2026-03_/cms/domains/v3
      parameters:
        - name: after
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: string
        - name: archived
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: boolean
        - name: createdAfter
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: createdAt
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: createdBefore
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: integer
            format: int32
        - name: sort
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
        - name: updatedAfter
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: updatedAt
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: updatedBefore
          in: query
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionResponseWithTotalDomain'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - cms.domains.write
        - oauth2:
            - cms.knowledge_base.settings.read
        - oauth2:
            - cms.knowledge_base.settings.write
        - oauth2:
            - cms.domains.read
        - oauth2:
            - content
components:
  schemas:
    CollectionResponseWithTotalDomain:
      required:
        - results
        - total
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/Paging'
        results:
          type: array
          description: クエリーの結果。
          items:
            $ref: '#/components/schemas/Domain'
        total:
          type: integer
          description: 利用可能な結果の数。
          format: int32
    Paging:
      type: object
      properties:
        next:
          $ref: '#/components/schemas/NextPage'
        prev:
          $ref: '#/components/schemas/PreviousPage'
    Domain:
      required:
        - correctCname
        - created
        - domain
        - id
        - isResolving
        - isSslEnabled
        - isSslOnly
        - isUsedForBlogPost
        - isUsedForEmail
        - isUsedForKnowledge
        - isUsedForLandingPage
        - isUsedForSitePage
        - manuallyMarkedAsResolving
        - primaryBlogPost
        - primaryEmail
        - primaryKnowledge
        - primaryLandingPage
        - primarySitePage
        - secondaryToDomain
        - updated
      type: object
      properties:
        correctCname:
          type: string
          description: ドメインの想定されるCNAMEレコード。
        created:
          type: string
          description: ドメインが作成された日時。
          format: date-time
        domain:
          type: string
          description: 実際のドメインまたはサブドメイン。例：www.hubspot.com
        id:
          type: string
          description: このドメインの固有ID。
        isResolving:
          type: boolean
          description: このドメインのDNSがHubSpotでの使用に合わせて最適に設定されているかどうか。
        isSslEnabled:
          type: boolean
          description: ドメインでSSLが有効になっているかどうかを示します。
        isSslOnly:
          type: boolean
          description: ドメインがSSL経由でのみアクセス可能であるかどうかを示します。
        isUsedForBlogPost:
          type: boolean
          description: ドメインがCMSブログ記事に使用されているかどうか。
        isUsedForEmail:
          type: boolean
          description: ドメインがCMS Eメール ウェブ ページに使用されているかどうか。
        isUsedForKnowledge:
          type: boolean
          description: ドメインがCMSナレッジページに使用されているかどうか。
        isUsedForLandingPage:
          type: boolean
          description: ドメインがCMSランディングページに使用されているかどうか。
        isUsedForSitePage:
          type: boolean
          description: ドメインがCMSサイトページに使用されているかどうか。
        manuallyMarkedAsResolving:
          type: boolean
          description: ドメインが手動で解決済みにされたかどうかを示します。
        primaryBlogPost:
          type: boolean
          description: ドメインがブログ記事のプライマリードメインであるかどうかを示します。
        primaryEmail:
          type: boolean
          description: ドメインがEメールページのプライマリードメインであるかどうかを示します。
        primaryKnowledge:
          type: boolean
          description: ドメインがナレッジページのプライマリードメインであるかどうかを示します。
        primaryLandingPage:
          type: boolean
          description: ドメインがランディングページのプライマリードメインであるかどうかを示します。
        primarySitePage:
          type: boolean
          description: ドメインがサイトページのプライマリードメインであるかどうかを示します。
        secondaryToDomain:
          type: string
          description: このドメインがセカンダリーとなるドメインを指定します。
        updated:
          type: string
          description: ドメインが最後に更新された日時。
          format: date-time
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: エラーカテゴリー
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: リクエストの固有ID。エラー報告またはサポートチケットには必ずこの値を含めてください
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: エラーに関する詳細情報
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: エラーまたは推奨の修正手順に関するドキュメントが含まれる関連付けられたURIへのリンク名の対応付け
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
          example: An error occurred
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    NextPage:
      required:
        - after
      type: object
      properties:
        after:
          type: string
          description: ページ番号付きのコレクションで結果の次のページの取得を開始する場所を示すカーソル値
        link:
          type: string
          description: 結果の次のページに直接アクセスするための任意のURL。
      description: >-
        Specifies the paging information needed to retrieve the next set of
        results in a paginated API response
    PreviousPage:
      required:
        - before
      type: object
      properties:
        before:
          type: string
          description: A paging cursor token for retrieving previous pages.
        link:
          type: string
          description: A URL that can be used to retrieve the previous pages' results.
      description: >-
        specifies the paging information needed to retrieve the previous set of
        results in a paginated API response
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: エラーの詳細に関連付けられているステータスコード
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: エラーが見つかったフィールドまたはパラメーターの名前。
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            cms.domains.write: ''
            cms.knowledge_base.settings.read: ''
            cms.knowledge_base.settings.write: ''
            content: ''

````