Listing issuer credentials
To list the credentials issued by issuer1
, use the following command:
curl --location 'https://${service_url}/v1.0/diagency/credentials' \
--header 'Authorization: Bearer ${issuer1_verifiable_credentials_access_token}'
The response includes the following details:
{
"count": 3,
"items": [
{
"id": "daa66cd9-7186-406c-9aa1-7ce4df616a97",
"role": "issuer",
"state": "issued",
"offer": {
"attributes": {
"class": "Math 100",
"grade": "A",
"rank": "2",
"instructor": "Dr. Math"
}
},
"issuer_did": "CRG4orwzg21CmvhErsyyjk",
...
"cred_def_id": "CRG4orwzg21CmvhErsyyjk:3:CL:33:TAG1",
...,
"schema_id": "CRG4orwzg21CmvhErsyyjk:2:course:1.0",
"schema_name": "course",
"schema_version": "1.0"
},
{
"id": "2a70979c-f386-4879-83a2-1bf6d00e3e85",
"role": "issuer",
"state": "outbound_offer",
"offer": {
"attributes": {
"class": "Math 100",
"grade": "B",
"rank": "20",
"instructor": "Dr. Math"
}
},
...
}
]
}