Trust registry proof templates

parameters
/trust-registries/{registryId}/proof-templates
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
registryIdstringRequired

A trust registry id

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

Get Trust Registry proof templates

get
/trust-registries/{registryId}/proof-templates

Returns the Trust Registry proof templates

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
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
/trust-registries/{registryId}/proof-templates
GET /trust-registries/{registryId}/proof-templates HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
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
/trust-registries/{registryId}/proof-templates
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
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

No content

post
/trust-registries/{registryId}/proof-templates
POST /trust-registries/{registryId}/proof-templates HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45

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

No content

parameters
/trust-registries/{registryId}/proof-templates/{templateId}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
registryIdstringRequired

A trust registry id

templateIdstringRequired

A proof template id

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

Remove Trust Registry proof template

delete
/trust-registries/{registryId}/proof-templates/{templateId}

Removes a Trust Registry proof template

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
registryIdstringRequired

A trust registry id

templateIdstringRequired

A proof template id

Responses
200

Trust Registry proof template has been deleted

No content

delete
/trust-registries/{registryId}/proof-templates/{templateId}
DELETE /trust-registries/{registryId}/proof-templates/{templateId} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?