Unable to run the REST API URL on the browser

arundharmabe
Tera Guru

Hello Everyone,

 

I'm Unable to run the REST API URL on the browser, When i run this it pop up a login page but once i entered the credentials it is still redirecting to the login pop up. The user is already having the REST API roles.

Could you please guide me what could be the issue.

 

https://<instance_name>/api/now/table/cmdb_ci_computer?sysparm_query=name%3D109-0273yzn&sysparm_disp...

 

Kind Regards, 

Arun

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

Not sure if it will run on a browser.

You can use postman to test it or the REST API Explorer if you want to test using ServiceNow


Please mark this response as correct or helpful if it assisted you with your question.

Tony Chatfield1
Kilo Patron

Hi, testing in a PDI I do not experience the issue described in your post, but can reproduce it in an instance that utilizes SSO, and for SSO I would think that this was correct\expected behavior as the user PW is not stored in the instance and authentication is completed externally.


Also, the URL you have shared appears to contain HTML encoding eg %3D which when I test results in a failed query, and shows a page containing only <response/>