After forking or importing the Opendock Postman collection, set up an environment with your credentials so Postman can authorize your API requests.
Pre-requisite: Prerequisite: You must be invited to your company’s Opendock organization as an Admin user before you can use the API. See [Opendock] Add Users to your Org. (Verify: if your org enforces SSO, API users need the Owner role. See [Opendock] Single Sign On (SSO) SAML 2.0.)
Step 1: Check the authorization on the collection’s parent folder
Make sure the collection’s parent folder uses the Bearer Token authorization type, with the token set to {{nova_access_token}}.
Step 2: Check the Login request variables
Open the Login request. Under Body, make sure the email and password use {{nova_user_email}} and {{nova_user_password}}.
Step 3: Create a Postman environment
- In Postman, open Environments in the left sidebar and create a new environment.
2. Name the environment, then add these variables and save:
Variable Value nova_backendhttps://neutron.opendock.com(usehttps://neutron.staging.opendock.comto test)nova_user_emailyour Opendock login email nova_user_passwordyour password nova_access_tokenleave blank
Step 4: Log in and get your access token
Select your new environment in the top-right dropdown, open the Login request and click Send. If it works, you get your access token.
Note: The access token saves to your environment automatically every time you log in. A script on the Login request does this. In current Postman it is under Scripts → Post-response. Every other request in the collection inherits the token from the parent folder.
Comments
0 comments
Please sign in to leave a comment.