How to test ServiceNow Rest API for attachment using POSTMAN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 02:05 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 02:11 AM
@Ajay95
Hope below link can help you .
https://learning.postman.com/docs/getting-started/installation/proxy/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 02:15 AM
are you using correct basic auth credentials?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 03:05 AM
Yes Ankur I am using correct Basic Auth credentials.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 03:49 AM
since you said instance is in VPN i.e. firewall then I believe you cannot test it via postman
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader