Using Postman to Test Engage Voice APIs
For easy testing using Postman, RingCentral provides a Postman 2.0 Collection for Engage Voice. It is based on the RingCentral Engage Voice OpenAPI 3.0 Specificaion. While Postman can import an OpenAPI 3.0 Specification directlszy, RingCentral recommends using the Collection as it provides better authorization handling using Postman variables and environments as recommended by Postman.
The files are available here:
This document describes how to install and use the Postman 2.0 Collection.
Note for Legacy Systems
This Postman spec is designed for following environment:
- Current RingCentral Engage Voice account located at: https://engage.ringcentral.com. See here for more information on current and legacy systems.
- RingCentral Engage Voice user linked to RingCentral Office user for Single Sign-on. RingCentral Office user should be using RingCentral password authenticaiton, not SAML-based Single Sign-on.
- RingCentral app created at https://developers.ringcentral.com with OAuth 2.0 Password Credentials flow enabled.
Using Postman once you have your pre-requisites consists of a few steps:
- Importing the Postman Collection
- Configuring Your Postman Environment
- Making an API call
Importing the Postman Collection
Use the following steps to import the Engage Digital Postman collection.
- In the upper left corner of the Postman application click the "Import" button.
- Click the "Import from Link" tab.
- Paste in the following URL where it says "Enter a URL and press import":
- Click the "ImpContinueort" button
Configuring Your Postman Environment
The Postman Collection uses environment variables for authentication and authorization. Fill out thes following for your environment:
- In Postman, create an environment by clicking the Gear icon for "Management Environments" in the upper right corner. This will bring up a list of existing environments.
- Click "Add" to create a new environment.
- Choose a name of your choice.
- Enter your enviroment variables as described below.
- Click the "Add" button to finish adding this environment.
||App's OAuth 2.0 Client ID|
||App's sOAuth 2.0 Client Secrets|
||RingCentral user's extension numbers|
||RingCentral user's password. Note, this needs to be using the RingCentral passsword system and not SSO for this Postman spec.|
Making an API call
To test the Postman collection, let's call the "Get Users" API.
- In the Environments pick list in the upper right corner, select the environment you just created.
- In the left hand navigation menu, select "Auth" > "Fetch access token"
- Click the "Send" button which will load a otken in the window. You do not need to do anything with this token.
- Navigate to "Users" > "Users" > "Get users" and click "Send".
If you have any feedback on using the Postman collection, please post to the Engage Voice docs GitHub repo.