Guides
Credential management
Query the Credential registry

How to query the Credential registry

Your MATTR VII tenant maintains a Credential registry that can store different parts of issued Web Credentials. You can query this registry for specific credentials and view their data.

You can query the registry for:

Only data from Web Credentials is stored in the registry.

Retrieve all Credentials

Request

Make the following request to retrieve all credentials from the registry:

HTTP
GET /v2/credentials/web-semantic

Response

When the persist property was set to true when the credential was created, the response contains both the credential and its metadata.

When the persist property was set to false, the response only contains the following metadata:

  • id
  • tag
  • credentialStatus
  • issuanceDate

Query by tag

Make a request of the following structure to query the registry by tags:

HTTP
GET /v2/credentials/web-semantic?tag=external-identifier

This request will only return credentials that are tagged with external-identifier.

Tags are case sensitive.

Query by type

Make a request of the following structure to query the registry by credential type:

HTTP
GET /v2/credentials/web-semantic?type=Course

This request will only return credentials with Course type.