Templates
Returns a collection of templates that the client can use and send to the verifier endpoints.
Claim-based access control: Verifier_Admin
, Verifier_User
, Verifier_Auditor
GET /products/web/$IDENTITY_ENV_ID/verifier/api/private/webapp/templates HTTP/1.1
Host: identity.nchainplatform.com
X-API-KEY: YOUR_API_KEY
Accept: */*
[
{
"definitionName": "Work Experience Credential",
"definitionId": "workExperienceCredential",
"definition": {
"id": "6a1b440-f15a-4464-a9fc-47669eabe9f0",
"name": "Work Experience Credential",
"purpose": "Provide Work Experience Credential",
"schema": [
{
"uri": "WorkExperienceCredential"
}
]
}
}
]
Enables the use of dynamic presentation definitions. The presentation definition is a JSON object that defines the rules the clients need to follow in order to produce a valid verifiable presentation.
Claim-based access control: Verifier_Admin
, Verifier_User
, Verifier_Auditor
documentSignature
POST /products/web/$IDENTITY_ENV_ID/verifier/api/private/webapp/presentation-definitions HTTP/1.1
Host: identity.nchainplatform.com
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"definitionName": "documentSignature",
"credentials": [
{
"credentialId": "emailCredential",
"fields": {
"email": "[email protected]"
}
}
]
}
{
"definitionId": "emailCredential"
}
Returns a list of presentation definition templates and their required fields. The templates are used when creating a new presentation definition and checked against the required fields to ensure that the presentation definition is valid.
Claim-based access control: Verifier_Admin
, Verifier_User
, Verifier_Auditor
GET /products/web/$IDENTITY_ENV_ID/verifier/api/private/webapp/presentation-definitions/templates HTTP/1.1
Host: identity.nchainplatform.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"templates": [
{
"definitionName": "documentSignature",
"credentials": [
{
"credentialId": "string",
"fields": {
"type": "object",
"properties": {
"email": {
"type": "string"
}
},
"required": [
"email"
]
}
}
]
}
]
}