Knowledge API for external clients

Daniel Arit
Tera Expert

Hi all,

 

Please provide your support on one matter regarding knowledge API access. 

I have activated the knowledge API for an Inbound REST API connection for an external client. The knowledge bases will work as an information repository for the external application!


I have:
• activated the necessary plugins
• established the OAuth connection
• created the API Auth Policies
• modified the ACLs in scope for this access (Knowledge and Attachment on read operation)
• provided the user account with the necessary roles to access the knowledge articles and their attachments
• added the user to the User Criteria article level to have permissions

• added the user to the KB level User Criteria


After all these steps, the connection is working; however, when I'm testing it using a third-party application, I only have access to 1500 articles from 3000 articles (the service user account can see all 3000 articles when I'm logged in directly to the instance).

 

 

Please provide any guidance!

Thank you in advance,

Daniel

 

1 ACCEPTED SOLUTION

Hello @Daniel Arit ,

 

Sorry, but I'm out of ideas, then. As per your initial post you seem to have made all the required configuration correctly.

The only recommendation I can make is to narrow down the issue like this: identify a handful of KB Articles that *are* returned by your API call, and a few that are *not*, and then see if you spot any differences between them.

 

Regards,

Robert

View solution in original post

6 REPLIES 6

Robert H
Mega Sage

Hello @Daniel Arit ,

 

Is the number of articles returned exactly 1500? Could it be that the third part application is passing this number as the "limit" query parameter? What are the values of "meta.count", "meta.start" and "meta.end" in the response body? You will have to paginate through the results. See the "offset" query parameter in the documentation.

 

Regards,

Robert

Hi Robert,

 

No. The exact number is 1526. I'm testing it using Postman and this is the count that appears in the JSON result (as I know the total count of articles in this case is the number from count; please correct me if I'm wrong). Please see the screenshot.

Hello @Daniel Arit ,

 

Interesting. Would it be possible for you to paste the entire API call that you are making here? Especially the "filter" query parameter?

 

Regards,

Robert

Hi Robert,

 

Unfortunately, I can't share all the details (the testing is done directly with client info).

However, I did not add any Query Parameters (I'm using only header info with Bearer access token). 

DanielArit_0-1743275988868.png