Need Help with Site-Search API Access for Private Knowledge Base Articles

Hi,

I’m currently working on a project where I need to enable API access to search private knowledge base articles using the Site-Search API. I’ve encountered an issue where the API only returns results for public documents, but not for private ones.

Here is the request I’m using: GET https://api.hubapi.com/cms/v3/site-search/search?q=knowledge%20base&type=KNOWLEDGE_ARTICLE&content_group_id=123456

I’ve followed the OAuth authentication flow and generated an access token using a private app’s credentials. I exchanged the authorization code for the access token by making a POST request to https://api.hubapi.com/oauth/v1/token.

Despite these steps, I’m still unable to retrieve search results for private knowledge base articles. Could someone help me figure out if I’m missing something in the authentication process or if there are additional steps required to enable access to private articles via the Site-Search API?

My ultimate goal is to publish knowledge base articles privately and grant API access to certain users so they can perform content searches using the Site-Search API on these articles. Any guidance or insights on how to achieve this would be greatly appreciated.

Thank you in advance for your assistance!

Hi, @PJohn6 :waving_hand: Thanks for your question.

Let’s invite a few community members to the conversation — hey @Teun @Stephanie-OG @Phil_Vallender do you have any recent experience with the Site Search API endpoints and Private Content?

Thank you for taking a look! — Jaycee