Sub-accounts are a feature of the Truvera API that allows Truvera's enterprise customers to segregate their data within the Truvera platform based on their own customers. Each sub-account can have its own keys, organization profiles, credential designs and verification templates conveniently organized to help with tracking and auditing of the activity performed by each.
When using a sub-account the parent account will set up separate API keys for each sub-account and then use the sub-account specific API key for the transactions associated with that sub-account.
In order to easier manage sub-account assets Ecosystem Tools can be used.
Download the collection here.
This Postman collection shows a simple example of sub-account set up in 5 steps:
- Creating a sub-account
- Creating an API key for a sub-account
- Creating a DID for the sub-account
- Inviting sub-account as a participant in an already existing ecosystem
- Accepting the invite
Sub-accounts are limited to 5 for trial users. The amount of sub-accounts for customers with subscription varies depending on the subscription plan.
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts" method="post" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts/{id}" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts/{id}" method="patch" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts/{id}" method="delete" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
Get details about the activity that this sub-account has performed in the system.
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts/{id}/usage" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
Creates an API key for a sub-account. In order for activity to be associated with the given sub-account an API key needs to be created for that sub-account and then that key must be used for all transactions related to that sub-account.
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts/{id}/keys" method="post" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts/{id}/keys" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
Delete the specified API key for the given sub-account.
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/subaccounts/{id}/keys/{keyId}" method="delete" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}