Postman testing

CaryllD
Tera Contributor

Hi Team,

 
I'm a newbie with Rest API within Service now  and  found this via now learning: https://nowlearning-nlinst01575481-001.lab.service-now.com/
 
I  do use this for practice and act as a system administrator. I  got 200 OK  from  Rest API Request and wanted  to test this on Postman. I created an OAuth from System  OAuth> Application registry> create new. Got my client ID and secret and still got access denied  error from the postman.
 
 
 
I do observe that what was used is the instance for the URL. I'm not sure if this URL is valid or not  for testing on postman. I did try to view self  help but unable  to find an answer. Please advise. Thank you
1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, unfortunately your post does not make your issue or configuration clear and a link to a youtube video does not help the community understand the URL's that you are using in your testing or provide any clear details of how you have configured Postman.

if you have configured an oauth registry entry and you are retrieving a token from your instance, then your initial POST will be to <yourInstanceName>/oauth_token.do

I would then test your first GET query with a basic url IE no additional parameters and expand on this once successful

IE <instanceName>/api/now/table/incident?

View solution in original post

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, unfortunately your post does not make your issue or configuration clear and a link to a youtube video does not help the community understand the URL's that you are using in your testing or provide any clear details of how you have configured Postman.

if you have configured an oauth registry entry and you are retrieving a token from your instance, then your initial POST will be to <yourInstanceName>/oauth_token.do

I would then test your first GET query with a basic url IE no additional parameters and expand on this once successful

IE <instanceName>/api/now/table/incident?

CaryllD
Tera Contributor

Im using the learningnow URL and not the instance URL and I got it figured out. I have misconfigured my account. Thanks for the help!