Api search on knowledge base for Non public data

Hello i have a question regarding the use for the API Http request ,

I have a Knowledge base site with plenty of blogs store, ones are public the others are private, i know that if i use --

https://api.hubapi.com/contentsearch/v2/search” or
https://api.hubapi.com/csm/v3/site-search/search”-- i can get all those articles… that are public but for the private data like drafts or something that is in other groups that doesnt quite show.

heres what im working with:
-I have super admin perms to all the site.
-I have my own user that is the Portal_id listed in all the other “private lists”
-I have the token id for the legacy apps to work
-The legacy apps have all read and write perms over cms.knowledge_base.articles

what i need::
Just a simple query search that brings me the items related to that query including the private items.

Hi @OIT and welcome, we are deighted to have you here!
Great question, thanks for asking the HubSpot Community!
Just to understand better, you’d like to see the private items via the knowledge search bar or only for you via API?
If it is via the search bar, the solution from @bsheen on this post “Do private articles appear in the internal knowledge base search?” might help you.
If it is via API, you might want to try the solution from @YBederov on this post “Knowledge Base API Documentation” and let us know how it goes?
Also, I’d love to invite our Top Experts to this discussion: Hi @Anton, @sylvain_tirreau and @SteveHTM do you know of a way to search the private items, to help @OIT, please?
Have a great day and thanks so much in advance for your valuable contributions!
Bérangère

For this case i need it to work using the api using an HTTP request, since im not accessing the data via a ui or display option , and i need some files that are set for certain groups that arent for the public

@BérangèreL It is very odd how i checked every post on the matter related to this issue and Hubspot doesnt seem to provide a right anwser , not even breeze knows why something THAT simple like accessing data restricted but with the correct user site credential still wont display that information by the api

Hi,

This is not possible at the moment. You can only support the idea proposed here: https://community.hubspot.com/t5/HubSpot-Ideas/Private-knowledgebase-API-integration/idi-p/1143105

If you want to keep Hubspot’s native knowledge base, you can build your own interface that captures all the articles, schedule a CSV export from your internal system, and then manually import your articles via the Hubspot UI.

Otherwise, you can create your own knowledge base via Hubdb, or through the blog, which has an API and provides access to drafts, which you can filter into private and public.

But all these solutions are imperfect…