# Powershell API call

**URL:** <https://developer.sailpoint.com/discuss/t/powershell-api-call/12947>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security, apis\
**Created:** [June 22, 2023, 9:57am UTC](https://developer.sailpoint.com/discuss/t/powershell-api-call/12947 "2023-06-22T09:57:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandramohan27](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@chandramohan27](https://developer.sailpoint.com/discuss/u/chandramohan27)\
**Post date:** [June 22, 2023, 9:57am UTC](https://developer.sailpoint.com/discuss/t/powershell-api-call/12947/1 "2023-06-22T09:57:13Z")

</div>

Hi,

I have written a powershell script for an API call to pull list of certification campaign.

The problem is, when try to run this script from windows server in my environment, I’m receiving attached error. I’m able to see the connection establishment is having a problem.

Could someone suggest an idea to fix this.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/9/91dc6f25f84d0c795e0eed190b1ae78e2cacdcd3.jpeg)

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [June 22, 2023, 11:21am UTC](https://developer.sailpoint.com/discuss/t/powershell-api-call/12947/2 "2023-06-22T11:21:53Z")

</div>

Please check with your networking team. The server seems to be blocking Sailpoint IDN URL connectivity.

---

<div class="post-metadata">

**Author:** ![aditya\_pathak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/aditya_pathak/32/2758_2.png) [@aditya\_pathak](https://developer.sailpoint.com/discuss/u/aditya_pathak)\
**Post date:** [June 22, 2023, 1:17pm UTC](https://developer.sailpoint.com/discuss/t/powershell-api-call/12947/3 "2023-06-22T13:17:48Z")

</div>

can you try just this command on powershell console of the machine from which you’re getting error -

Invoke-WebRequest ‘Your IDN URL’

and see if it works and opens your website.

If yes, then there might be an issue in you cmdlet/script.

---

<div class="post-metadata">

**Author:** ![antony\_petson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/antony_petson/32/2697_2.png) [@antony\_petson](https://developer.sailpoint.com/discuss/u/antony_petson)\
**Post date:** [June 22, 2023, 1:22pm UTC](https://developer.sailpoint.com/discuss/t/powershell-api-call/12947/4 "2023-06-22T13:22:16Z")

</div>

I would recommend to utilise SDK built by @colin_mckibben. It’s easy and amazing to use.

> [@Advanced Reporting with APIs](https://developer.sailpoint.com/discuss/t/advanced-reporting-with-apis/8131):
>
> [[Developer Days 2023 - IdentityNow, Advanced Reporting with APIs] ](https://www.youtube.com/watch?v=grMeG5hShag)Additional Resources The code for this presentation is here: [GitHub - colin-mckibben-sp/api-reporting-examples: Examples of how to do SailPoint IDN reporting using APIs](https://github.com/colin-mckibben-sp/api-reporting-examples)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [August 21, 2023, 1:22pm UTC](https://developer.sailpoint.com/discuss/t/powershell-api-call/12947/5 "2023-08-21T13:22:51Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
