# 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](/truvera-workspace/verify-credentials.md) 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](/credential-wallet/wallet-sdk.md) should be used.

## Create a proof template <a href="#create-proof-request" id="create-proof-request"></a>

{% 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 <a href="#create-proof-request" id="create-proof-request"></a>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.truvera.io/truvera-api/presentations/proof-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
