Basic

Retrieve all previous versions of a website page

Changed on

Retrieves all the previous versions of a website page, specified by page ID.

get/cms/pages/2026-09/site-pages/{objectId}/revisions

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/cms/pages/2026-09/site-pages/{objectId}/revisions
  • Auth
    • OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: cms.pages.site_pages.read
    • or OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: marketplace_validation
    • or OAuth 2
      Authorization code: https://app.hubspot.com/oauth/authorize
      Token URL: https://api.hubapi.com/oauth/v1/token scopes: content

Path parameters

objectIdstring required

The unique identifier of the site page for which to retrieve revisions.

Query parameters

afterstring

The paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results.

beforestring

A cursor token to retrieve results before a specific point in the list.

limitinteger

The maximum number of results to display per page.

Response

successful operation

totalinteger required

An integer representing the total number of items in the collection.

Changes

    • info

      the security scope cms.pages.site_pages.read was added to the endpoint's security scheme oauth2

    • info

      the security scope content was removed from the endpoint's security scheme oauth2

  • 2026-09b8bba18c29f8Revision changes
    • info

      the security scope content was added to the endpoint's security scheme oauth2

    • info

      the security scope sitepages-read was removed from the endpoint's security scheme oauth2