We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to test ServiceNow Rest API for attachment using POSTMAN.

AjayI7527126430
Tera Contributor

Hi,

 

I need to test ServiceNow Rest API for attachment using POSTMAN as client instances are accessible through VPN only. As their instances are not in public domain.

 

When I tried to sent request using Basic Auth it is going timeout.

 

Note : Instance has SSO enabled.

 

Below REST API I am using to fetch the attachment :

 

Versioned URL:  <SERVICE-NOW>/ api /now/v1/attachment/ {sys_id} /file

 

I am using Postman Desktop application even though it is giving timeout.

 

Can anyone help me with this issue?

5 REPLIES 5

newhand
Mega Sage

@AjayI7527126430 
Hope below link can help you .

https://learning.postman.com/docs/getting-started/installation/proxy/

 

 

Please mark my answer as correct and helpful based on Impact.

Ankur Bawiskar
Tera Patron

@AjayI7527126430 

are you using correct basic auth credentials?

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

Yes Ankur I am using correct Basic Auth credentials.

@AjayI7527126430 

since you said instance is in VPN i.e. firewall then I believe you cannot test it via postman

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