Zum Hauptinhalt springen
GET
/
cms
/
v3
/
domains
/
現在のドメインを取得
curl --request GET \
  --url https://api.hubapi.com/cms/v3/domains/ \
  --header 'Authorization: Bearer <token>'
{
  "total": 2,
  "results": [
    {
      "id": "1234",
      "createdAt": "2017-07-24T17:24:09.141Z",
      "updatedAt": "2017-07-25T18:20:00.000Z",
      "domain": "234.hs-sites.com",
      "isPrimaryLandingPage": false,
      "isPrimaryEmail": false,
      "isPrimaryBlogPost": true,
      "isPrimarySitePage": false,
      "isPrimaryKnowledge": false,
      "isResolving": true,
      "isManuallyMarkedAsResolving": false,
      "isHttpsEnabled": true,
      "isHttpsOnly": false,
      "isUsedForBlogPost": true,
      "isUsedForSitePage": false,
      "isUsedForLandingPage": false,
      "isUsedForEmail": false,
      "isUsedForKnowledge": false,
      "expectedCname": "234.group34.sites.hubspot.net",
      "redirectTo": ""
    },
    {
      "id": "4321",
      "createdAt": "2017-07-11T13:00:52.928Z",
      "updatedAt": "2019-10-08T16:54:57.165Z",
      "domain": "test.demo.com",
      "isPrimaryLandingPage": false,
      "isPrimaryEmail": false,
      "isPrimaryBlogPost": true,
      "isPrimarySitePage": false,
      "isPrimaryKnowledge": false,
      "isResolving": true,
      "isManuallyMarkedAsResolving": false,
      "isHttpsEnabled": true,
      "isHttpsOnly": false,
      "isUsedForBlogPost": true,
      "isUsedForSitePage": false,
      "isUsedForLandingPage": false,
      "isUsedForEmail": false,
      "isUsedForKnowledge": false,
      "expectedCname": "234.group34.sites.hubspot.net",
      "redirectTo": ""
    }
  ]
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Starter
この API には、次のいずれかのスコープが必要です。
cms.domains.read
cms.domains.write
cms.knowledge_base.settings.read
cms.knowledge_base.settings.write
content

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

createdAt
string<date-time>

この日付で作成されたドメインのみを返します。

createdAfter
string<date-time>

この日付より後に作成されたドメインのみを返します。

createdBefore
string<date-time>

この日付より前に作成されたドメインのみを返します。

updatedAt
string<date-time>

この日付で更新されたドメインのみを返します。

updatedAfter
string<date-time>

この日付より後に更新されたドメインのみを返します。

updatedBefore
string<date-time>

この日付より前に更新されたドメインのみを返します。

sort
string[]
after
string

最後に正常に読み取られたリソースのページ操作カーソルトークンは、より多くの結果を含むページ付きレスポンスのpaging.next.after JSONプロパティーとして返されます。

limit
integer

ページあたりの結果の最大数。

archived
boolean

アーカイブ済みの結果のみを返すかどうか。

Response

successful operation

total
integer
required
results
object[]
required
paging
object
I