Using Postman with OAuth
Getting a ShareFile Client Id and Secret
The first step will be to get a Client Id and Secret that is compatible with Postman. First navigate to our ShareFile API Key Generator. On this page you will be able to log into your ShareFile account and you will be present with a web form.
Make sure that the Redirect URI is set up to be used with Postman. Simply put 'https://www.getpostman.com/oauth2/callback' as your Redirect URI and then generate the key
Using Postman
Now that you have your Client ID and Secret you are ready to use Postman. Open up the application and click on the OAuth 2.0 tab at the top, and enter the following values:
- Authorization URL: https://secure.sharefile.com/oauth/index.aspx?redirect_uri=https://www.getpostman.com/oauth2/callback
- Access Token URL: https://secure.sharefile.com/oauth/token?grant_type=authorization_code
- Client ID/ Client Secret: The Id and Secret generated on the previous step
From here click on the “Get access token” button and you should see the following form
In order to execute a request you will need to add the token to your header; this will be an option once you have saved. Click the Radio button to select this option and then click the saved token name.
This will add the Authorization Bearer to your query. Then you can add in a request url and hit send to execute. You can try https://account.sf-api.com/sf/v3/Items as an example to start.