Where is the Knowledge Base API Documentation in HubSpot?

Hi!
seems to have found it :smiley: Not documented. No warranty at all.
missing API in two steps:

  1. get a list of knowledge base article IDs
  2. get the contents of each id

But how to get all the content if this search API asks us for a term? An empty term is not allowed!
Tada! term=a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z

https://api.hubapi.com/contentsearch/v2/search?type=KNOWLEDGE_ARTICLE&term=a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z&portalId=YOUR_PORTAL_ID&limit=999

(without limits you will need to use offset etc)

We have 11 articles and using this nice term we are getting them all‌‌ =). Please make sure you are also getting the correct number of knowledge base articles, I mean total in the 2nd line of the JSON.

So you will get JSON like

{
 "total": 11,
 "offset": 0,
 "limit": 999,
 "results": [
 {
 "id": 85372448791,
 "score": 20.023497,
 "type": "KNOWLEDGE_ARTICLE",
<....>

Now we have all ID like 85372448791

Getting content:

https://api.hubapi.com/cms/v3/site-search/indexed-data/85372448791?type=KNOWLEDGE_ARTICLE

and you will get JSON with all data:

"html_all_nested.en": {
"name": "html_all_nested.en",
"value": "Be at least 99 years old",
"values": [
"Be at least 99 years old",
<....>