*requires installing and using this additional plugin
Get your Bearer token to access and use Platform of Trust APIs in Sandbox.
NOTE: Bearer token
expires in 24 hours. So Make sure to get the regenerated one to continue.
5.1 On macOS, from Insomnia REST client, go to Insomnia Preference -> Data -> Import Data - > From URL, paste, and save the URL.
On successful import, your REST client will contain the workspace, 2 environment and several folders containing HTTP requests to Platform of Trust APIs.
5.2 To set bearer token
as the authorization header
in API request bodies:
Bearer token
from your browser's developer toolbearer_token
attribute in the Sandbox environment. Make sure to exclude the "Bearer " part from the token.5.3 From Insomnia REST client environments, select Use Sandbox.
You are ready to go!
You can try different API calls depending on what you want to achieve.
You can follow this get-started guide to use the workspace and familiarize yourself with Platform of Trust features.
Install this plugin from Platform of Trust to compute and add a X-Pot-Signature
header to /broker/v1/fetch-data-product
requests
Install this plugin in add custom timestamps.
Application
, open Create App “template” and fill in the JSON
parameters depending on your needs. Click Send
button to send the request.group_id
environment variable must also be set accordingly.Group
using the specific chain request.identity network
as shown in the diagram above.IMPORTANT: In order to custom create an identity network, you need to modify the contents of the chain request to create an Identity Network. In addition, to learn about Chain request in Insomnia REST client, you also need knowledge on Template Tags and Environment Variable.
Learn about chain requests in Insomnia REST client
The Sandbox environment imported with the workspace contains several attributes, for example: pot_base_url
, bearer_token
, group_id
, client_secret
and app_token
. pot_base_url
is already set with the value https://api-sandbox.oftrust.net
, which is needed to try out the APIs in the Sandbox
.