Pular para o conteúdo principal
GET
/
cms
/
v3
/
domains
Obter domínios atuais
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": ""
    }
  ]
}

Produtos suportados

Requer um dos seguintes produtos ou superior.
Marketing HubMarketing Hub -Grátis
Sales HubSales Hub -Grátis
Service HubService Hub -Grátis
Content HubContent Hub -Grátis

Authorizations

Authorization
string
header
required

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

Query Parameters

after
string

O token do cursor de paginação do último recurso lido com sucesso será retornado como a propriedade JSON "paging.next.after" de uma resposta paginada que contém mais resultados.

archived
boolean

Se apenas os resultados que foram arquivados devem ser retornados.

createdAfter
string<date-time>

Retorne apenas os domínios criados após esta data.

createdAt
string<date-time>

Retorne apenas os domínios criados nesta data.

createdBefore
string<date-time>

Retorne apenas os domínios criados antes desta data.

limit
integer<int32>

O número máximo de resultados por página.

sort
string[]

Especifica a ordem em que os domínios são retornados.

updatedAfter
string<date-time>

Retorne apenas domínios atualizados após esta data.

updatedAt
string<date-time>

Retorne apenas domínios atualizados nesta data.

updatedBefore
string<date-time>

Retorne apenas domínios atualizados antes desta data.

Response

successful operation

results
object[]
required
total
integer<int32>
required

O número total de domínios retornados na resposta.

paging
object