Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 3.02 KB

File metadata and controls

59 lines (39 loc) · 3.02 KB

Proof templates

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.

Create a proof template

{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates" method="post" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}

Get proof templates

{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}

Get details of a specific proof template

{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="get" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}

Update a proof template

{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="patch" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}

Get proof requests from template

{% 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 %}

Delete a proof template

{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="delete" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}

Delete history for a proof template

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 %}

Delete a proof template

{% openapi src="https://swagger-api.truvera.io/openapi.yaml" path="/proof-templates/{id}" method="delete" %} https://swagger-api.truvera.io/openapi.yaml {% endopenapi %}