Test REST API with Dev account

Lee11
Mega Contributor

Hi Experts

I have created a Dev account which has given me a Dev instance. I have customised the Incident record and created some test data. I now wish to test accessing the list of Incidents via the REST API.

I am trying to authenticate over https://[myinstance].service-now.com/oauth_token.do to get a token. I need to pass in user credentials when I do this. My dev account credentials dont work (they are essentially like community credentials). When I access my dev instance I do it from a  button on the Dev login page that says "Start Building". This logs me in as System Administrator. I dont actually know the credentials (ie. username and password) behind this login. I cant seem to reset any user logins and I cant seem to create a new login.

What credential can I use with a dev instance to test the REST API?

 

Thanks for any advice.  

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you are using OAuth based authentication then check my blog on how to do the setup

OAuth 2.0 with Inbound REST

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Sai Kumar B
Mega Sage
Mega Sage

Hi Author,

To test the REST API, You can use REST API Explorer from the application navigator

In Query parameters, you can give queries to return a list of the records

find_real_file.png

Thanks sai, but I need to test externally. In fact I need to demonstrate that RPA automation can call the REST API to fetch incidents. 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you are using OAuth based authentication then check my blog on how to do the setup

OAuth 2.0 with Inbound REST

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks Ankur. But the Dev instance does not seem to let me create a new user. Nor does it seem to let me reset a user password.