Trust Registry Proof Templates

parameters
Authorizations
Path parameters
registryIdstringRequired

A trust registry id

parameters
PARAMETERS /trust-registries/{registryId}/proof-templates HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*

Get Trust Registry proof templates

get

Returns the Trust Registry proof templates

Authorizations
Path parameters
registryIdstringRequired

A trust registry id

Query parameters
offsetinteger · int32Optional

How many items to offset by for pagination

Default: 0
limitinteger · int32 · min: 1 · max: 64Optional

How many items to return at one time (max 64)

Default: 64
Responses
200
List of proof templates
application/json
get
GET /trust-registries/{registryId}/proof-templates HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*
{
  "total": 200,
  "list": [
    {
      "id": "37275574-7ea4-438d-b8ef-f8fc61dbf09e",
      "attributes": {
        "ANY_ADDITIONAL_PROPERTY": {
          "name": "favouriteDrink",
          "names": [
            "age"
          ]
        }
      },
      "name": "Proof request",
      "nonce": "1234567890",
      "qr": "http://creds-testnet.truvera.io/proof/37275574-7ea4-438d-b8ef-f8fc61dbf09e",
      "did": "did:cheqd:testnet:ac2b9027-ec1a-4ee2-aad1-1e316e7d6f59",
      "verified": false
    }
  ]
}

Assigns a proof template to a trust registry

post
Authorizations
Path parameters
registryIdstringRequired

A trust registry id

Body
idstringRequired

The proof template ID

Example: a6cd414a-6eba-4241-9a9c-6f75864edbd5
Responses
200
Trust Registry has been assigned the proof template
post
POST /trust-registries/{registryId}/proof-templates HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "id": "a6cd414a-6eba-4241-9a9c-6f75864edbd5"
}

No content

parameters
Authorizations
Path parameters
registryIdstringRequired

A trust registry id

templateIdstringRequired

A proof template id

parameters
PARAMETERS /trust-registries/{registryId}/proof-templates/{templateId} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*

Remove Trust Registry proof template

delete

Removes a Trust Registry proof template

Authorizations
Path parameters
registryIdstringRequired

A trust registry id

templateIdstringRequired

A proof template id

Responses
200
Trust Registry proof template has been deleted
delete
DELETE /trust-registries/{registryId}/proof-templates/{templateId} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*

No content

Last updated

Was this helpful?