light-mode-image
Learn
MATTR VII PlatformJSON

Create a revocation message payload

Returns a message in JWM format that can be used to notify subjects based on their credential revocation status change.

To send a notification to the Subject DID holder, use the returned payload with the encrypt and send endpoints.

Analytics Events

CREDENTIAL_WEB_SEMANTIC_REVOCATION_MESSAGE_PAYLOAD_CREATE_STARTCREDENTIAL_WEB_SEMANTIC_REVOCATION_MESSAGE_PAYLOAD_CREATE_SUCCESSCREDENTIAL_WEB_SEMANTIC_REVOCATION_MESSAGE_PAYLOAD_CREATE_FAIL

Roles

adminissuer
POST/v2/credentials/web-semantic/{id}/revocation-status/notification
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Unique identifier for the credential whose status has changed.

Formatuuid

Create a JWM message payload

fromstring

The sender's DID URL, obtained from the id field of the first keyAgreement entry of the DID document. This must be a DID with a key type suitable for messaging (not a BLS key type).

Length1 <= length
toarray<string>

The intended recipients DID URL.

Response Body

curl -X POST "https://example.vii.au01.mattr.global/v2/credentials/web-semantic/873277c0-a162-11ea-8a1d-a111119347e6/revocation-status/notification" \  -H "Content-Type: application/json" \  -d '{    "from": "did:web:organization.com",    "to": [      "did:key:subjectDid1",      "did:key:subjectDid2",      "did:key:subjectDid3"    ]  }'
{
  "id": "string",
  "type": "string",
  "to": [
    "did:key:subjectDid1",
    "did:key:subjectDid2",
    "did:key:subjectDid3"
  ],
  "from": "did:web:organization.com",
  "created_time": 0,
  "body": {
    "revocationListCredential": "string",
    "revocationListIndex": "string",
    "isRevoked": true
  }
}

How would you rate this page?