<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Convert Okta API Call to Run in PowerShell via Postman
Administration
Okta Classic Engine
Okta Identity Engine
Overview
This article explains how to convert and execute an Okta API call from Postman in PowerShell.
Applies To
  • Postman
  • PowerShell
  • Okta Classic Engine
Solution

Steps to convert Okta API call to run in PowerShell via Postman:

  1. Generate an Okta API call in Postman or import from the Okta API collection.

  2. Configure the environment in Postman to run Okta API calls, as mentioned in Test the Okta REST APIs with Postman.

  3. In the API call execution section, on the right-hand side, click on the Code hyperlink.

    API call execution 
     

  4. Select PowerShell-RestMethod and copy the PowerShell code.

  5. Paste the PowerShell code in PowerShell ISE and the body section of the code, and successfully run the API call from PowerShell.  

Loading
Convert Okta API Call to Run in PowerShell via Postman