GET
/
cms
/
v3
/
blogs
/
posts
Get all posts
curl --request GET \
  --url https://api.hubapi.com/cms/v3/blogs/posts \
  --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>",
      "htmlTitle": "<string>",
      "publishImmediately": true,
      "translations": {},
      "id": "<string>",
      "state": "<string>",
      "slug": "<string>",
      "createdById": "<string>",
      "rssBody": "<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,
      "layoutSections": {},
      "updated": "2023-11-07T05:31:56Z",
      "footerHtml": "<string>",
      "tagIds": [
        123
      ],
      "widgets": {},
      "postSummary": "<string>",
      "headHtml": "<string>",
      "pageExpiryRedirectUrl": "<string>",
      "abStatus": "master",
      "useFeaturedImage": true,
      "abTestId": "<string>",
      "featuredImageAltText": "<string>",
      "blogAuthorId": "<string>",
      "contentGroupId": "<string>",
      "rssSummary": "<string>",
      "pageExpiryEnabled": true,
      "url": "<string>",
      "enableGoogleAmpOutputOverride": true,
      "publicAccessRules": [
        {}
      ],
      "archivedAt": 123,
      "postBody": "<string>",
      "themeSettingsValues": {},
      "pageExpiryDate": 123,
      "publicAccessRulesEnabled": true,
      "currentState": "AUTOMATED",
      "categoryId": 123,
      "linkRelCanonicalUrl": "<string>"
    }
  ]
}
Supported products
Requires one of the following products or higher.
Marketing HubMarketing HubProfessional
Sales HubSales HubFree
Service HubService HubFree
Content HubContent HubStarter

Required Scopes

This API requires one of the following scopes:
  • 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>

Only return blog posts created at exactly the specified time.

createdAfter
string<date-time>

Only return blog posts created after the specified time.

createdBefore
string<date-time>

Only return blog posts created before the specified time.

updatedAt
string<date-time>

Only return blog posts last updated at exactly the specified time.

updatedAfter
string<date-time>

Only return blog posts last updated after the specified time.

updatedBefore
string<date-time>

Only return blog posts last updated before the specified time.

sort
string[]

Specifies which fields to use for sorting results. Valid fields are createdAt (default), name, updatedAt, createdBy, updatedBy.

after
string

The cursor token value to get the next set of results. You can get this from the paging.next.after JSON property of a paged response containing more results.

limit
integer

The maximum number of results to return. Default is 20.

archived
boolean

Specifies whether to return deleted blog posts. Defaults to false.

property
string

Response

200
application/json

successful operation

Response object for collections of blog posts with pagination information.