MATTR VII PlatformSemantic CWT credentials
Format a Semantic CWT credential as a QR code
Returns a QR code representation of a Semantic CWT credential from a provided encoded string representation of that credential.
Analytics Events
CREDENTIAL_COMPACT_SEMANTIC_QRCODE_CREATE_STARTCREDENTIAL_COMPACT_SEMANTIC_QRCODE_CREATE_SUCCESSCREDENTIAL_COMPACT_SEMANTIC_QRCODE_CREATE_FAIL
Roles
adminissuer
POST
/v2/credentials/compact-semantic/qrcodeAuthorizationBearer <token>
In: header
payloadstring
String representation of the encoded CWT credential.
width?number
Optionally specify the desired width of the output QR code. When no width is specified MATTR VII will generate a QR code with an optimised width based on the size of the payload. Maximal value is 1000px.
Response Body
curl -X POST "https://example.vii.au01.mattr.global/v2/credentials/compact-semantic/qrcode" \  -H "Content-Type: application/json" \  -d '{    "payload": "CSS:/1/2KCE3IQEJB5DCMSMGRKXI3IBE2QFSANKVACBUYQYB2HQKGTCDAHI6BQ2MIMA5DYBPAUWI2L..."  }'"string"{
  "code": "BadRequest",
  "message": "Validation Error",
  "details": [
    {
      "value": "1",
      "msg": "must be a string",
      "param": "payload",
      "location": "body"
    }
  ]
}How would you rate this page?