Listing holder credentials

To list the credentials held by user1, use the following command:

curl --location 'https://${service_url}/v1.0/diagency/credentials' \
--header 'Authorization: Bearer ${user1_verifiable_credentials_access_token}'

The response includes the following details:

{
    "count": 1,
    "items": [
        {
            "id": "daa66cd9-7186-406c-9aa1-7ce4df616a97",
            "role": "holder",
            "state": "stored",
            "offer": {
                "attributes": {
                    "schema_id": "CRG4orwzg21CmvhErsyyjk:2:course:1.0",
                    "cred_def_id": "CRG4orwzg21CmvhErsyyjk:3:CL:33:TAG1",
                    ...
                }
            },
            "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"
        }
    ]
}