For the complete documentation index, see llms.txt. This page is also available as Markdown.

Verification Templates

Verification templates define which credential(s) a Verifier requests and for what purpose.

SVX Wallet supports two flavours of verification template:

A DCQL verification template will include a dcql_query object that describes the required credential(s).

A PEX verification template will include an input_descriptors array that describes the required credential(s).

Who can undertake this operation?

Verification templates can only be created and managed by people who have access to the SVX Wallet Dashboard and API.

Create Verification Template

Creation of a verification template

Endpoint

POST /verifier/templates

Use the following example to create a verification template with the Admin API:

DCQL

curl -X POST "$SVX_WALLET_BASE_URL/verifier/templates" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "template": {
      "name": "dcql_template",
      "purpose": "identity verification",
      "type": "dcql",
      "dcql_query": {
        "credentials": [
          {
            "id": "pid",
            "format": "dc+sd-jwt",
            "meta": { "vct_values": ["https://credentials.example.com/identity_credential"] },
            "claims": [
              { "path": ["given_name"] },
              { "path": ["family_name"] },
              { 
                "path": [
                  "address", 
                  "street_address"
                ] 
              }
            ]
          }
        ]
      }
    }
  }'

PEX

The API returns the created verification template object including its generated id.

Remaining endpoints

The following endpoints are used to maintain and read verification template information:

  • GET /verifier/templates - List verification templates available to the caller

  • GET /verifier/templates/{id} - Read verification template by ID

  • PATCH /verifier/templates/{id} - Update verification template by ID

  • DELETE /verifier/templates/{id} - Delete verification template by ID

Last updated