> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: f79333f5-ce63-4329-938f-013d99bf678d
---

# Retrieves previous versions of a folder

> Retrieve a list of revisions for a specific landing page folder. This endpoint allows you to access historical versions of a folder, which can be useful for tracking changes or restoring previous states.

> [accordion] Supported products

> [accordion] Required Scopes


## OpenAPI

````yaml specs/2027-03-beta/cms-pages-v2027-03-beta.json GET /cms/pages/2027-03-beta/landing-pages/folders/{objectId}/revisions
openapi: 3.0.1
info:
  title: CMS Pages
  description: Basepom for all HubSpot Projects
  version: 2027-03-beta
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
  - name: Basic
  - name: Batch
paths:
  /cms/pages/2027-03-beta/landing-pages/folders/{objectId}/revisions:
    get:
      tags:
        - Advanced
      summary: List revisions
      description: >-
        Retrieve a list of revisions for a specific landing page folder. This
        endpoint allows you to access historical versions of a folder, which can
        be useful for tracking changes or restoring previous states.
      operationId: >-
        get-/cms/pages/2027-03-beta/landing-pages/folders/{objectId}/revisions_/cms/pages/2027-03-beta/landing-pages/folders/{objectId}/revisions
      parameters:
        - name: objectId
          in: path
          description: >-
            The unique identifier of the landing page folder for which to
            retrieve revisions.
          required: true
          style: simple
          explode: false
          schema:
            type: string
        - name: after
          in: query
          description: >-
            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.
          required: false
          style: form
          explode: true
          schema:
            type: string
        - name: before
          in: query
          description: A cursor token to retrieve results before a specific point in time.
          required: false
          style: form
          explode: true
          schema:
            type: string
        - name: limit
          in: query
          description: The maximum number of results to display per page.
          required: false
          style: form
          explode: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CollectionResponseWithTotalContentFolderVersion
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - cms.pages.landing_pages.read
        - oauth2:
            - content
components:
  schemas:
    CollectionResponseWithTotalContentFolderVersion:
      required:
        - results
        - total
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/Paging'
        results:
          type: array
          description: >-
            An array containing the content folder versions returned in the
            current response.
          items:
            $ref: '#/components/schemas/ContentFolderVersion'
        total:
          type: integer
          description: The total number of content folder versions available.
          format: int32
    Paging:
      type: object
      properties:
        next:
          $ref: '#/components/schemas/NextPage'
        prev:
          $ref: '#/components/schemas/PreviousPage'
      description: >-
        Represents the pagination information for navigating through a list of
        results in the API. It provides details on how to access the previous or
        next set of results.
    ContentFolderVersion:
      required:
        - id
        - object
        - updatedAt
        - user
      type: object
      properties:
        id:
          type: string
          description: >-
            The unique identifier for this specific version of the content
            folder.
        object:
          $ref: '#/components/schemas/ContentFolder'
        updatedAt:
          type: string
          description: >-
            The date and time when this version of the content folder was last
            updated, in ISO 8601 format.
          format: date-time
        user:
          $ref: '#/components/schemas/VersionUser'
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: A string representing the general category of the error.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            A map containing additional context or metadata related to the
            error.
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A string that serves as a unique identifier for the request, useful
            for tracking and debugging.
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: An array of objects detailing specific errors that occurred.
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            An array of objects providing URLs to related resources or
            documentation about the error.
        message:
          type: string
          description: A string providing a human-readable description of the error.
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A string providing a more specific classification of the error
            within its category.
      description: >-
        Represents an error response returned by the API when an operation
        fails. This component is used in various endpoints to provide detailed
        information about the error encountered.
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    NextPage:
      required:
        - after
      type: object
      properties:
        after:
          type: string
          description: >-
            A string representing the paging cursor token of the last
            successfully read resource. This token is used to fetch the next set
            of results in a paged response.
        link:
          type: string
          description: >-
            A string containing the URL link to the next page of results. This
            link can be used to directly access the subsequent page of data.
      description: >-
        Specifies the paging information needed to retrieve the next set of
        results in a paginated API response
    PreviousPage:
      required:
        - before
      type: object
      properties:
        before:
          type: string
          description: >-
            A string token used as a cursor to identify the starting point for
            the previous page of results.
        link:
          type: string
          description: >-
            A URL string that provides the link to access the previous page of
            results.
      description: >-
        specifies the paging information needed to retrieve the previous set of
        results in a paginated API response
    ContentFolder:
      required:
        - category
        - created
        - deletedAt
        - id
        - name
        - parentFolderId
        - updated
      type: object
      properties:
        category:
          type: integer
          description: >-
            The category of the content folder, which may define its use or type
            within the CMS.
          format: int32
        created:
          type: string
          description: >-
            The date and time when the content folder was created, in ISO 8601
            format.
          format: date-time
        deletedAt:
          type: string
          description: >-
            The date and time when the content folder was deleted, in ISO 8601
            format, if applicable.
          format: date-time
        id:
          type: string
          description: The unique identifier for the content folder.
        name:
          type: string
          description: The name of the content folder.
        parentFolderId:
          type: integer
          description: >-
            The unique identifier of the parent folder, if this folder is nested
            within another folder.
          format: int64
        updated:
          type: string
          description: >-
            The date and time when the content folder was last updated, in ISO
            8601 format.
          format: date-time
    VersionUser:
      required:
        - email
        - fullName
        - id
      type: object
      properties:
        email:
          type: string
          description: >-
            The email address of the user. It is a string value that must be
            unique.
        fullName:
          type: string
          description: >-
            The full name of the user. This is a string value representing the
            user's complete name.
        id:
          type: string
          description: The unique identifier for the user. This is a string value.
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: A specific code representing the type of error.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            Additional context or parameters related to the error, often
            provided as a map of key-value pairs.
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: >-
            The location in the request where the error occurred, such as
            'query' or 'body'.
        message:
          type: string
          description: A descriptive message explaining the error.
        subCategory:
          type: string
          description: >-
            A more specific classification of the error within a broader
            category.
      description: >-
        Represents detailed information about an error that occurred in the API.
        This component is used to provide additional context and specifics about
        errors, typically as part of an error response.
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            cms.pages.landing_pages.read: ''
            cms.pages.site_pages.read: ''
            content: ''
            marketplace_validation: ''
      x-hubspot-app-availability:
        cms.pages.landing_pages.read:
          user:
            - public
            - private
          developer: true
        cms.pages.site_pages.read:
          user:
            - public
            - private
          developer: true
        content:
          portal:
            - public
            - private
          developer: false
        marketplace_validation:
          developer: true

````