Machine-2-Machine Communication
Tenant and Organisation Administrators can provide an application with authenticated access to SVX functionality. This allows the application to perform different actions based on the permissions of the Tenant or Organisation Administrator creating the application.
Applications created by Tenant Administrators will be able to:
Invite and remove end-users
Manage credential schemas
Applications created by Organisation Administrators will be able to:
Create and archive credential templates
Issue and revoke credentials
Create and archive verification templates
Create verification requests and view verification responses
Create and cancel connections with end-users
Access the SVX Sandbox API and create an application
To access the SVX Sandbox API and create an application you will need to follow the steps below:
1. Access the SVX Sandbox API documentation
Navigate to SVX Sandbox API documentation. At the top of the landing page, you will see the OpenAPI3 specification. Download the specification and import it into Postman.
Note To download the OpenAPI3 specification into Postman, follow these simple steps:
Download the specification from the SVX API documentation
Open Postman
Import the downloaded .json file
2. Create an application
Log in to the SVX Portal and create an application, see the Applications tutorial located in the Portal tutorials for more information.
Note Tenant and Organisation Administrators can both create Applications, however, different workflows are achieved based on the associated role and access rights.
Note Once an application has been created, ensure you record the
client_id
andclient-secret
.
3. Open the API configuration
View the Open API configuration at https://login-sandbox.securevalueexchange.com/oauth2/.well-known/openid-configuration and retrieve your authorisation token.
Use the token endpoint from the configuration (https://login-sandbox.securevalueexchange.com/oauth2/token) to obtain an authorisation token. You can do this using the cURL command as shown below:
Replace YOUR_CLIENT_ID
and YOUR_CLIENT_SECRET
with the actual values you obtained when creating the application.
Note The Application Token will expire every 10 minutes. To refresh the token you will need to call the token endpoint again.
4. Access the SVX Sandbox API
With the obtained authorisation token, you can now use the SVX Sandbox API. For example, if you want to access the me endpoint, use the following cURL command:
Replace YOUR_ORGANISATION_ID
with the relevant ID for your organisation, and YOUR_ACCESS_TOKEN
with the token obtained in the previous step. You should now be able to successfully access the SVX Sandbox API using the provided authorisation token.
Last updated