light-mode-image
Learn
MATTR VII PlatformJSON

Retrieve credential data

Returns all available data for an existing credential that matches the provided ID:

  • For credentials that were created with the persist flag set to true, the response contains both the credential and its metadata.
  • For credentials that were created with the persist flag set to false, the response only contains the metadata (id, tag, credentialStatus, issuanceDate)

Analytics Events

CREDENTIAL_WEB_SEMANTIC_RETRIEVE_STARTCREDENTIAL_WEB_SEMANTIC_RETRIEVE_SUCCESSCREDENTIAL_WEB_SEMANTIC_RETRIEVE_FAIL

Roles

adminissuer
GET/v2/credentials/web-semantic/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Credential ID

Response Body

curl -X GET "https://example.vii.au01.mattr.global/v2/credentials/web-semantic/string"

{
  "id": "873277c0-a162-11ea-8a1d-a111119347e6",
  "credential": {
    "@context": [
      "https://www.w3.org/2018/credentials/v1"
    ],
    "type": [
      "VerifiableCredential",
      "AlumniCredential"
    ],
    "issuer": {
      "id": "did:web:organization.com",
      "name": "Example University"
    },
    "issuanceDate": "2020-05-02T12:06:29.156Z",
    "credentialStatus": {
      "id": "https://tenant.vii.mattr.global/v1/revocation-lists/cc641396-3750-43c8-b8b8-f30d74eb3fb3#1",
      "type": "RevocationList2020Status",
      "revocationListCredential": "https://tenant.vii.mattr.global/v1/revocation-lists/cc641396-3750-43c8-b8b8-f30d74eb3fb3",
      "revocationListIndex": 4
    },
    "credentialSubject": {
      "givenName": "Jamie",
      "familyName": "Doe"
    },
    "proof": {
      "type": "Ed25519Signature2018",
      "created": "2020-05-02T12:06:29Z",
      "jws": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
      "proofPurpose": "assertionMethod",
      "verificationMethod": "did:web:organization.com"
    }
  },
  "tag": "identifier123",
  "credentialStatus": {
    "id": "https://tenant.vii.mattr.global/v1/revocation-lists/cc641396-3750-43c8-b8b8-f30d74eb3fb3#1",
    "type": "RevocationList2020Status",
    "revocationListCredential": "https://tenant.vii.mattr.global/v1/revocation-lists/cc641396-3750-43c8-b8b8-f30d74eb3fb3",
    "revocationListIndex": 4
  },
  "issuanceDate": "2020-05-02T12:06:29.156Z"
}

{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}
{
  "code": "string",
  "message": "string",
  "details": [
    {
      "value": "string",
      "msg": "Invalid value",
      "param": "id",
      "location": "body"
    }
  ]
}

How would you rate this page?