> ## 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.

# Retrieve all knowledge bases

> Retrieve a paginated list of knowledge bases in your HubSpot account. Supports filtering by creation and update timestamps, as well as sorting.

> [accordion] Supported products

> [accordion] Required scopes


## OpenAPI

````yaml specs/2027-03-beta/cms-knowledge-base-v2027-03-beta.json GET /cms/knowledge-base/2027-03-beta/knowledge-bases
openapi: 3.0.1
info:
  title: CMS Knowledge Base
  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: Basic
  - name: Categories
  - name: Drafts
  - name: Tags
paths:
  /cms/knowledge-base/2027-03-beta/knowledge-bases:
    get:
      tags:
        - Basic
      summary: Retrieve all knowledge bases
      description: >-
        Retrieve a paginated list of knowledge bases in your HubSpot account.
        Supports filtering by creation and update timestamps, as well as
        sorting.
      operationId: get-/cms/knowledge-base/2027-03-beta/knowledge-bases
      parameters:
        - name: after
          in: query
          description: >-
            A pagination cursor. Pass the value from the previous response’s
            paging.next.after to retrieve the next page.
          required: false
          style: form
          explode: true
          schema:
            type: string
        - name: createdAfter
          in: query
          description: >-
            Filter to knowledge bases created after a specific date and time.
            Accepts an ISO-8601 timestamp (e.g., 2026-09-20T00:00:00Z) or a
            plain date (e.g., 2026-09-20).
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: createdAt
          in: query
          description: >-
            Filter knowledge bases to those with this exact creation date and
            time. Accepts an ISO-8601 timestamp (e.g., 2026-09-20T00:00:00Z) or
            a plain date (e.g., 2026-09-20).
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: createdBefore
          in: query
          description: >-
            Filter to knowledge bases created before the specified date and
            time. Accepts an ISO-8601 timestamp (e.g., 2026-09-20T00:00:00Z) or
            a plain date (e.g., 2026-09-20).
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          description: >-
            The maximum number of results to display per page. Default is 25,
            maximum is 100. 
          required: false
          style: form
          explode: true
          schema:
            type: integer
            format: int32
        - name: sort
          in: query
          description: >-
            Specify how to sort results. Accepts name, createdAt, or updatedAt;
            prefix a field with - for descending order (e.g., -createdAt).
            Defaults to createdAt descending (newest first).
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
        - name: updatedAfter
          in: query
          description: >-
            Filter to knowledge bases updated after the specified date and time.
            Accepts an ISO-8601 timestamp (e.g., 2026-09-20T00:00:00Z) or a
            plain date (e.g., 2026-09-20).
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: updatedAt
          in: query
          description: >-
            Filter knowledge bases to those with this exact update date and
            time. Accepts an ISO-8601 timestamp (e.g., 2026-09-20T00:00:00Z) or
            a plain date (e.g., 2026-09-20).
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
        - name: updatedBefore
          in: query
          description: >-
            Filter to knowledge bases updated before the specified date and
            time. Accepts an ISO-8601 timestamp (e.g., 2026-09-20T00:00:00Z) or
            a plain date (e.g., 2026-09-20).
          required: false
          style: form
          explode: true
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CollectionResponseKnowledgeBaseForwardPaging
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - cms.knowledge_base.settings.read
        - oauth2:
            - cms.knowledge_base.articles.publish
        - oauth2:
            - cms.knowledge_base.articles.write
        - oauth2:
            - cms.knowledge_base.articles.read
        - oauth2:
            - cms.knowledge_base.settings.write
components:
  schemas:
    CollectionResponseKnowledgeBaseForwardPaging:
      required:
        - results
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/ForwardPaging'
        results:
          type: array
          description: >-
            The knowledge bases in this page of results, as an array of
            KnowledgeBase objects.
          items:
            $ref: '#/components/schemas/KnowledgeBase'
    ForwardPaging:
      type: object
      properties:
        next:
          $ref: '#/components/schemas/NextPage'
    KnowledgeBase:
      required:
        - accessType
        - createdAt
        - domain
        - id
        - language
        - name
        - path
        - relatedArticlesEnabled
        - translations
        - updatedAt
        - url
      type: object
      properties:
        accessType:
          type: string
          description: "The access level for the knowledge base: PUBLIC, SSO_LOGIN, or ACCESS_GROUP_MEMBERSHIP.\t"
          enum:
            - ACCESS_GROUP_MEMBERSHIP
            - PUBLIC
            - SSO_LOGIN
        createdAt:
          type: string
          description: >-
            The date and time the knowledge base was created, in ISO 8601
            format.
          format: date-time
        createdByUserId:
          type: string
          description: The ID of the user who created the knowledge base.
        domain:
          type: string
          description: The domain associated with the knowledge base.
        id:
          type: string
          description: The unique identifier for the knowledge base.
        language:
          type: string
          description: "The knowledge base’s language, as an ISO 639 code (e.g. en).\t"
        metaDescription:
          type: string
          description: A brief description of the knowledge base, used for SEO.
        name:
          type: string
          description: The name of the knowledge base.
        path:
          type: string
          description: >-
            The URL path segment for the knowledge base. Combined with domain,
            this forms the URL field.
        relatedArticlesEnabled:
          type: boolean
          description: >-
            A boolean indicating whether related articles are enabled for the
            knowledge base.
        translations:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/KnowledgeBaseTranslationSummary'
          description: >-
            The knowledge base’s translations, keyed by language code, with each
            value a KnowledgeBaseTranslationSummary.
        updatedAt:
          type: string
          description: >-
            The date and time when the knowledge base was last updated, in ISO
            8601 format.
          format: date-time
        updatedByUserId:
          type: string
          description: >-
            The unique identifier of the user who last updated the knowledge
            base.
        url:
          type: string
          description: The full URL of the knowledge base.
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: The error category
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A unique identifier for the request. Include this value with any
            error reports or support tickets
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: further information about the error
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            A map of link names to associated URIs containing documentation
            about the error or recommended remediation steps
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      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: >-
            An opaque, encoded cursor for the next page of results. Pass this
            value back as the after query parameter to retrieve the next page.
          example: '{ "after": "Mg%3D%3D" }'
        link:
          type: string
          description: >-
            A ready-to-use URL for the next page of results, with the after
            cursor already applied.
          example: >-
            { "link":
            "https://api.hubapi.com/cms/knowledge-base/2027-03-beta/tags?after=Mg%3D%3D"
            }
      description: >-
        Specifies the paging information needed to retrieve the next set of
        results in a paginated API response
    KnowledgeBaseTranslationSummary:
      required:
        - domain
        - name
        - path
        - url
      type: object
      properties:
        domain:
          type: string
          description: The domain associated with the knowledge base translation.
          example: '{ "domain": "ayuda-es.example.com" }'
        metaDescription:
          type: string
          description: "A brief description of the knowledge base translation, used for SEO. null if not set.\t"
          example: '{ "metaDescription": "Aprende a usar nuestro producto." }'
        name:
          type: string
          description: The name of the knowledge base translation.
          example: '{ "name": "Guía de usuario" }'
        path:
          type: string
          description: "The URL path segment for the knowledge base translation. Combined with domain, this forms the URL field.\t"
          example: '{ "path": "ayuda" }'
        url:
          type: string
          description: >-
            The full URL of the knowledge base translation, combining domain and
            path.
          example: '{ "url": "https://ayuda-es.example.com/ayuda" }'
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: The status code associated with the error detail
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: The name of the field or parameter in which the error was found.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      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.knowledge_base.articles.publish: ''
            cms.knowledge_base.articles.read: ''
            cms.knowledge_base.articles.write: ''
            cms.knowledge_base.settings.read: ''
            cms.knowledge_base.settings.write: ''

````