How to query the Credential registry
Your MATTR VII tenant maintains a Credential registry that can store different parts of issued JSON credentials. You can query this registry for specific credentials and view their data.
You can query the registry for:
Retrieve all Credentials
Request
Make the following request to retrieve all credentials from the registry:
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:
GET /v2/credentials/web-semantic?tag=external-identifier
This request will only return credentials that are tagged with external-identifier
.
Query by type
Make a request of the following structure to query the registry by credential type:
GET /v2/credentials/web-semantic?type=Course
This request will only return credentials with Course
type.