It is common to repeatedly request the same information from holders in subsequent proof requests. The Truvera API makes this easy by allowing you to create proof request templates to define the contents of the proof requests in a way that can be reused. The Truvera Workspace refers to proof request templates as "verification templates".
To verify a credential with Truvera, the verifier will need to create a proof template and generate a proof request to which the holder wallet will provide the verifiable presentation. Verifiable presentations can not be created via the REST API, as the Truvera Wallet SDK should be used.
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates" method="post" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="patch" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% hint style="info" %} Use the Verified parameter when needing to get only those verifications that were succsessful. {% endhint %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}/history" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="delete" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
This endpoint provides an irreversible deletion of all of proof template's verification history data.
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}/history" method="delete" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}
{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="delete" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}