Postman is a collaboration platform for API development. Postman's features simplifying each step of building an API and streamline collaboration so you can create better APIs—faster.
Visit the Postman downloads page to install the desktop client for your system.
- Copy the
Platform Core API.postman_collection.json
andMATTR Tenant env.postman_environment.json
and save them locally
In Postman, a Collection is the series of operations and some configuration, Environment Variables hold specific values for your tenant. They need to be imported in 2 separate steps.
Go to Manage Environment button in the top-right
Choose Import
button
Select the MATTR Tenant env.postman_environment.json
file from your local drive
Once the file has successfully imported you will see the Environment available
To add your Tenant specific variable click on the text MATTR Tenant env
baseUrl
replacetenant
with your subdomain provided during tenant creationextUrl
if you intend to use extensions like the OIDC Bridge, replacetenant
with your subdomainbearerToken
will be updated automatically using a Pre-request scripted at the Collection level (included)auth_url
&auth_audience
can remain as-isauth_client_id
is your Client ID for authorization to the APIauth_client_secret
is your Client Secret for authorization to the APIissuerDID
andsubjectDid
can be updated later
Click 'Update' to save.
Click on 'Import' button in the menu in the top-left
In File tab, click Upload file button
Select the Platform Core API.postman_collection.json
file.
Once the file has successfully imported you will see the Platform Core API Collection
First, make sure you can obtain a valid access token from the 'Create API Auth Token' endpoint inside the Security
folder:
This operation will make use of the environment variables you configured above. If you do not obtain a valid 200 response then make sure you check your variables in Environment.
Go to a protected endpoint e.g.
DIDs
> Retrieve a List of DIDs
Hit Send
in the top right of the Request pane (middle of the application)
See the response in the Preview
section of the Response pane on the right.
The Collection contains a Pre-Request script, which will fetch an access token from the Authorization Token endpoint if the access token in the bearerToken
variable is missing or expired.
If you receive an 'unauthorized' error, check that you have selected the correct Environment and that this script matches those variables.
Copyright © MATTR Limited. Some rights reserved.
“MATTR” is a trademark of MATTR Limited, registered in New Zealand and other countries.