How to test REST API using Postman
124
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 12:56 PM
Objective
How can we test whether REST API is working with Postman?
Environment
9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;14.6
Procedure
Install Postman from https://www.getpostman.com/ or any REST API tool.
- Logon to the Vault.
- In Postman, select POST and enter http://{pvwa_address}/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/Logon in the URL.
- In the Body parameters, enter the authentication details, i.e. username and password.
- Click Send.
- Query / update details in the Vault.
- In Postman, select GET and enter http://{pvwa_address}/PasswordVault/WebServices/PIMServices.svc/Safes in the URL. This URL example is applicable for List Safes.
- In the Header parameters, enter the Authorization string that was provided by the Logon API.
- Click Send.
- Logoff from the Vault.
- In Postman, select POST and enter http://{pvwa_address}/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/Logoff in the URL.
- In the Header parameters, enter the Authorization string that was provided by the Logon API.
- Click Send.
- REST API is bundled with PVWA and as long as you're able to connect using PVWA, you're able to use REST API.
- Supported REST API command is in the Privileged Account Security Web Services SDK Implementation Guide.pdf, which is attached to this article.
Additional Information
Details
Q:
How can we test whether REST API is working with Postman?
A:
- Install Postman from https://www.getpostman.com/ or any REST API tool.
- Logon to the Vault.
- In Postman, select POST and enter http://{pvwa_address}/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/Logon in the URL.
- In the Body parameters, enter the authentication details, i.e. username and password.
- Click Send.
- Query / update details in the Vault.
- In Postman, select GET and enter http://{pvwa_address}/PasswordVault/WebServices/PIMServices.svc/Safes in the URL. This URL example is applicable for List Safes.
- In the Header parameters, enter the Authorization string that was provided by the Logon API.
- Click Send.
- Logoff from the Vault.
- In Postman, select POST and enter http://{pvwa_address}/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/Logoff in the URL.
- In the Header parameters, enter the Authorization string that was provided by the Logon API.
- Click Send.
INFORMATION: -
- REST API is bundled with PVWA and as long as you're able to connect using PVWA, you're able to use REST API.
- Supported REST API command is in the Privileged Account Security Web Services SDK Implementation Guide.pdf.