Create a presentation request template
A presentation request template defines what information is required for verification. The template is used to create the actual presentation request, which tells the holder which DID to include in the response.
Request
Make the following request to create a presentation request template:
http
1POST https://YOUR_TENANT_URL/v2/credentials/web-semantic/presentations/templates
json
1{
2 "name": "did-presentation",
3 "domain": "YOUR_TENANT_URL",
4 "query": [
5 {
6 "type": "DIDAuth"
7 }
8 ]
9}
domain
: This indicates to the holder what domain is asking for information. This will need to be your tenant domain or a custom domain, if configured.type
: This should beDIDAuth
to indicate to the holder that this is the DID it should return in the response.
Response
json
1{
2 "id": "aee61692-3568-484a-8eda-e150c48ec9e6",
3 "name": "did-presentation",
4 "domain": "YOUR_TENANT_URL",
5 "query": [
6 {
7 "type": "DIDAuth"
8 }
9 ]
10}
id
: This is the unique identifier for this presentation request template. It would be used later in this tutorial when you create a new presentation request.