How to test ServiceNow Rest API for attachment using POSTMAN.

Ajay95
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

@Ajay95 
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
Tera Patron

@Ajay95 

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.

@Ajay95 

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