Not able to fetch Incident on POSTMAN.

Avinash30
Kilo Explorer

I am trying to authenticate the ServiceNow using basic authentication on POSTMAN using the following GET request api  :

https://XXXXXXX.service-now.com/api/now/table/incident/sysparam_limit=1

I have set the authorization and added that in Header.

I get the following response with status code 200 OK :

Unexpected '}' 

Can someone please help me what am I missing here?

 

2 REPLIES 2

Priyanka Gupta
Mega Guru

Hi Avinash,

Please share a screenshot of the call.

Priyanka

Hello Avinash, 

Please do the following changes and let me know if you are still facing the issues.

https://XXXXXXX.service-now.com/api/now/table/incident/sysparam_limit=1

HERE sysparm_limit is the query parameter and i can see you have added it as the path parameter above 

so after incident replace "/sysparm_limit=1" to "?sysparm_limit=1"

You can set up the basic authorization details in the Authorization tab as shown below

find_real_file.png

Query params you can add it in the Params tab on POSTMAN as shown below (which automatically appends with?key=value) to the URL

Please find the below screenshot:

find_real_file.png

The header information will get autogenerated post doing the above changes 

Result:

find_real_file.png

 

Please try performing your test queries on REST API EXPLORER which is inbuilt into the interface to check how the endpoints with any query parameter work and behave.

 

Hope this helps.

 

Mark this answer as correct if it resolves your query and also to remove this thread from the unanswered category.

 

Thanks,

SIVA

find_real_file.png