Unable to use the API,how to access it. "https://instance.servicenow.com/api/sn_km_api/knowledge/articles"

Phanikanth
Kilo Contributor

Hi,

I'm not able to use the api  "https://instance.servicenow.com/api/sn_km_api/knowledge/articles",when I'm trying to access api through postman getting error like 

"requested URI does not represent any resource". Please  help to solve this.
I'm using api with my domain name
API:https://dev82597.service-now.com/api/sn_km_api/knowledge/articles

find_real_file.png

12 REPLIES 12

Unless Scripted REST API was created, there no url.

Is the question on how to retrieve knowledge articles or how to create a scripted api?

Hi,

Correct.

 how to create a scripted api and need to retrieve the articles from api

Hi,

Navigate to the module "Scripted Rest API" as shown below:

Click on New and then save the form. Once Saved Scroll down to Resource Related List and add your Resources there which can be a Post or the method you want say in this case it will be "GET" in your case.

Once defined the endpoint which you will get here you need to use that endpoint in your Postman tool to retrieve the data you are looking for.

Refer to below video which you can refer to learn how to create Scripted Rest API:

https://www.youtube.com/watch?v=48aBJqdC6xI

https://www.youtube.com/watch?v=PLuE-iMcDgs

https://www.youtube.com/watch?v=7POS69Rcs6g

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Why is there a need to add """https://dev82597.service-now.com/api/sn_km_api/knowledge/articles"? What is insufficient with OOTB API "https://dev82597.service-now.com/api/now/table/kb_knowledge"?

Hi,

I want to access this api to retrieve knowledge articles.

https://dev82597.service-now.com/api/sn_km_api/knowledge/articles.

The below api made by me and not able to retrieve kb articles to download.

https://dev82597.service-now.com/api/now/table/kb_knowledge"