MATTR VII PlatformCWT credentials
Format a CWT credential as a PDF
Returns a PDF representation of a provided CWT credential based on an existing PDF template.
The request will fail if the provided credential isn't valid or has expired.
Analytic events
- CREDENTIAL_COMPACT_PDF_CREATE_START
- CREDENTIAL_COMPACT_PDF_CREATE_SUCCESS
- CREDENTIAL_COMPACT_PDF_CREATE_FAIL
POST
/v2/credentials/compact/pdfAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
Credential payload
templateId?string
Use the ID element of the PDF template to be used to format this credential.
Length
1 <= lengthpayload?string
String payload representation of the encoded CWT credential.
Length
1 <= length <= 1024Response Body
application/pdf
application/json
application/json
curl -X POST "https://example.vii.au01.mattr.global/v2/credentials/compact/pdf" \ -H "Content-Type: application/json" \ -d '{ "templateId": "4eea7654-d4c5-4eba-bd7a-5ca334d54725", "payload": "{payload}" }'null{
"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?