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 10:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 10:27 PM
Hi,
Yes your correct,after retrieving the articles from the above api,I need to download the KB articles but I could not able to download and there is link to download artilces.Plz suggest for that.
- 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