• Live group demo of Marketing Hub + Data Agent

    Standardize reporting, reduce manual work, and introduce AI without cleanup

    Join us on March 12
  • Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

Hubspot Knowledge Base API

scottd

It appears from the API Docs and searching the Dev forum that this API is available but not documented.  It also appears according to the article below to not allow access to the content itself but rather a link.  We would move our glossary, blog and release notes to Hubspot potentially if this API were more robust.  We currently use contentful to manage content and provide API access to it.  

 

https://integrate.hubspot.com/t/knowledge-base-articles-api-for-search-and-get-content/11428

48 Replies
MikaelFurst
Member

Have there really been no updates on the Knowledge Base API? Five years is quite a long time, especially considering how frequently it's been requested.

mffap
Member

This is really required for us to move content over. The KB can't be customized so it makes sense within our website, we want to pull just the content and handle display ourselves while using KB content for support flows in Service Hub.

ClaireBIGENIUS
Contributor

+1 how is it possible that we can access everything except the knowledge base with the hubspot API!

MarcoHuber
Participant

Guys, seriously?

Your last official statement on this was in 2020, acknowledging it's a relevant topic. Since then—nothing.
This idea now has over 200 upvotes and clearly addresses a critical need for many users.


Please re-evaluate your priorities.

This isn’t just a nice-to-have—it’s essential functionality that your users have been requesting for years.

PHadfield
Member

One vote here

AlexHub
Member

This is very critical as we don't want to make the content public but we can't use the widget to show private content by SSO due to this bug...

TGrosser
Member

Just putting this here, because I haven't found it immediately, and these posts are still unresponded to:

You can, at least, read the entire Knowledge Base using the HubSpot GraphQL tool:

 

# ---------- GraphQL Queries ----------

LIST_ARTICLES_QUERY = """
query PublishedKBArticlesNewestFirst($limit: Int!, $offset: Int!) {
  KB {
    knowledge_article_collection(
      limit: $limit
      offset: $offset
      filter: { hs_published_at__null: false }
      orderBy: [hs_published_at__desc]
    ) {
      items {
        hs_id
        hs_name
        hs_path
        hs_published_at
      }
    }
  }
}
"""

ARTICLE_DETAIL_QUERY = """
query ArticleForExport($id: String!) {
  KB {
    knowledge_article(uniqueIdentifier: "hs_id", uniqueIdentifierValue: $id) {
      id: hs_id
      title: hs_name
      subtitle: hs_summary
      path: hs_path
      lang: hs_language
      raw_format: hs_body
      published_at: hs_published_at
      updated_at: hs_updated_at
    }
    knowledge_base_collection(limit: 1, offset: 0) {
      items {
        source: hs_name
        domain: hs_domain
        kb_path: hs_slug
      }
    }
  }
}
"""

May not solve everyone's problem, but solved mine. 

TamF
Member

Adding a comment here for a Knowledge Base API. My team just started using HubSpot and we'd assumed this was already part of the API.

Our intention was to mass create KB articles from our existing customer success content (looms, emails etc) and have Claude etc review them for consistency, style, etc and then upload them all via the API. 

It would speed us up massively if we could mass submit (or edit) KB articles. 

 

Given this thread has been open for years now, I'm not confident this is going to get done any time soon. But my vote and comment have been cast!