How to hit REST Endpoints?

daniel chicchon
Mega Contributor

Hello!

Currently I am trying to test the REST API for ServiceNow but unsure what I'm missing since I'm not getting any responses. After reading the tutorial I assume that I need to specify my instance and credentials to get access to an endpoint.

 

For example, I would like GET the endpoint `https://instance.servicenow.com/now/account` but am unable to get a response even with my username and password. Is this the proper way of hitting the endpoint? I would like to know what I'm doing wrong here.

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

Use Rest API Explorer with table API. Choose get and then set what field and other things you want. Once you click send it will get you the the correct end point. But the starting end point looks more like this 

https://instance.service-now.com/api/now/table/{tableName}

View solution in original post

12 REPLIES 12

Saiganeshraja
Kilo Sage
Kilo Sage
Navigate to REST API explorer and select table api Post that apply the things whatever as per requirement . You will find the rest api end point for that table Mark correct and helpful ,if it helps

Thanks for your response! I'm currently on the resources page and it specifies I should "To open the REST API Explorer, use the All menu to open System Web Services > REST > REST API Explorer."

 

However, I'm unsure where this "All" menu is located. I've checked my instance and it doesn't appear to be there or the dev site. Perhaps you could navigate me to this resource? Thank you for your help!

I think they are just trying to say search all menus for System Web Services > REST > REST API Explorer. Just sounds like bad wording.

https://yourinstance.service-now.com/$restapi.do link to access rest api explorer