GET
/
cms
/
v3
/
pages
/
site-pages
Obter todas as Páginas do site
curl --request GET \
  --url https://api.hubapi.com/cms/v3/pages/site-pages \
  --header 'Authorization: Bearer <token>'
{
  "total": 123,
  "paging": {
    "next": {
      "link": "",
      "after": ""
    }
  },
  "results": [
    {
      "publishDate": "2023-11-07T05:31:56Z",
      "language": "af",
      "enableLayoutStylesheets": true,
      "metaDescription": "<string>",
      "attachedStylesheets": [
        {}
      ],
      "password": "<string>",
      "publishImmediately": true,
      "htmlTitle": "<string>",
      "translations": {},
      "id": "<string>",
      "state": "<string>",
      "slug": "<string>",
      "createdById": "<string>",
      "currentlyPublished": true,
      "archivedInDashboard": true,
      "created": "2023-11-07T05:31:56Z",
      "contentTypeCategory": "0",
      "mabExperimentId": "<string>",
      "updatedById": "<string>",
      "translatedFromId": "<string>",
      "folderId": "<string>",
      "widgetContainers": {},
      "pageExpiryRedirectId": 123,
      "dynamicPageDataSourceType": 123,
      "featuredImage": "<string>",
      "authorName": "<string>",
      "domain": "<string>",
      "name": "<string>",
      "dynamicPageHubDbTableId": "<string>",
      "campaign": "<string>",
      "dynamicPageDataSourceId": "<string>",
      "enableDomainStylesheets": true,
      "includeDefaultCustomCss": true,
      "subcategory": "<string>",
      "layoutSections": {},
      "updated": "2023-11-07T05:31:56Z",
      "footerHtml": "<string>",
      "widgets": {},
      "headHtml": "<string>",
      "pageExpiryRedirectUrl": "<string>",
      "abStatus": "master",
      "useFeaturedImage": true,
      "abTestId": "<string>",
      "featuredImageAltText": "<string>",
      "contentGroupId": "<string>",
      "pageExpiryEnabled": true,
      "templatePath": "<string>",
      "url": "<string>",
      "publicAccessRules": [
        {}
      ],
      "archivedAt": "2023-11-07T05:31:56Z",
      "themeSettingsValues": {},
      "pageExpiryDate": 123,
      "publicAccessRulesEnabled": true,
      "pageRedirected": true,
      "currentState": "AUTOMATED",
      "categoryId": 123,
      "linkRelCanonicalUrl": "<string>"
    }
  ]
}
Produtos suportados
Requer um dos seguintes produtos ou superior.
Marketing HubMarketing HubGrátis
Sales HubSales HubGrátis
Service HubService HubGrátis
Content HubContent HubGrátis

Escopos Necessários

Esta API requer um dos seguintes escopos:
  • 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>

Retorne apenas Páginas do site criadas exatamente no horário especificado.

createdAfter
string<date-time>

Retorne apenas Páginas do site criadas após o horário especificado.

createdBefore
string<date-time>

Retorne apenas Páginas do site criadas antes do horário especificado.

updatedAt
string<date-time>

Retorne apenas Páginas do site atualizadas pela última vez exatamente no horário especificado.

updatedAfter
string<date-time>

Retorne apenas Páginas do site atualizadas pela última vez após o horário especificado.

updatedBefore
string<date-time>

Retorne apenas Páginas do site atualizadas pela última vez antes do horário especificado.

sort
string[]

Especifica quais campos usar para classificar os resultados. Os campos válidos são "name", "createdAt", "updatedAt", "createdBy", "updatedBy". O campo "createdAt" será usado por padrão.

after
string

O valor do token do cursor para obter o próximo conjunto de resultados. Você pode obter esse valor da propriedade JSON "paging.next.after" em uma resposta paginada que contém mais resultados.

limit
integer

O número máximo de resultados a serem retornados. O padrão é 100.

archived
boolean

Especifica se deve retornar Páginas do site excluídas. O padrão é "false".

property
string

Response

200
application/json

successful operation

Response object for collections of pages with pagination information.