Unable to use the API,how to access it. "https://instance.servicenow.com/api/sn_km_api/knowledge/articles"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 08:39 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 09:54 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 10:01 PM
Hi,
Correct.
how to create a scripted api and need to retrieve the articles from api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 10:18 PM
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
Regards,
Shloke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 09:59 PM
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"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 10:05 PM
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"