Issuance
Sign a Semantic CWT credential
/v2/credentials/compact-semantic/signReturns a signed Semantic CWT credential generated from a provided valid payload.
Roles
Analytics Events
Authorization
bearerAuth In: header
Request Body
application/json
Semantic CWT credential payload to sign
TypeScript Definitions
Use the request body type in TypeScript.
Sign Semantic CWT credential Request
Response Body
application/json
application/json
curl -X POST "https://example.com/v2/credentials/compact-semantic/sign" \ -H "Content-Type: application/json" \ -d '{ "payload": { "iss": "string", "vc": { "type": "string", "credentialSubject": { "property1": "string", "property2": "string" } } } }'{ "id": "string", "encoded": "string", "decoded": { "iss": "string", "jti": "string", "nbf": 0, "exp": 0, "iat": 0, "aud": "string", "sub": "string", "vc": { "@context": [ "string" ], "type": [ "string" ], "credentialSubject": { "property1": "string", "property2": "string" } }, "status": { "url": "string", "index": 0 } }}Format a Semantic CWT credential as a QR code
/v2/credentials/compact-semantic/qrcodeReturns a QR code representation of a Semantic CWT credential from a provided encoded string representation of that credential.
Roles
Analytics Events
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
image/png
application/json
curl -X POST "https://example.com/v2/credentials/compact-semantic/qrcode" \ -H "Content-Type: application/json" \ -d '{ "payload": "string" }'"string"Format a Semantic CWT credential as a PDF
/v2/credentials/compact-semantic/pdfReturns a PDF representation of a provided CWT credential based on an existing PDF template.
Roles
Analytics Events
Authorization
bearerAuth In: header
Request Body
application/json
The credential payload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/pdf
application/json
application/json
curl -X POST "https://example.com/v2/credentials/compact-semantic/pdf" \ -H "Content-Type: application/json" \ -d '{ "templateId": "4eea7654-d4c5-4eba-bd7a-5ca334d54725", "payload": "{payload}" }'nullFormat a Semantic CWT credential as an Apple Pass
/v2/credentials/compact-semantic/digital-pass/appleReturns an Apple Pass representation of a provided Semantic CWT credential based on an existing Apple Pass template.
Roles
Analytics Events
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
objectResponse Body
application/vnd.apple.pkpass
application/json
curl -X POST "https://example.com/v2/credentials/compact-semantic/digital-pass/apple" \ -H "Content-Type: application/json" \ -d '{ "templateId": "3812166c-ac9f-4e4e-96dd-c1336b5be378", "payload": "{payload}" }'"string"Format a Semantic CWT credential as a Google Pass
/v2/credentials/compact-semantic/digital-pass/googleReturns a Google Pass representation of a provided CWT credential based on an existing Google Pass template.
Roles
Analytics Events
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
objectResponse Body
application/json
application/json
curl -X POST "https://example.com/v2/credentials/compact-semantic/digital-pass/google" \ -H "Content-Type: application/json" \ -d '{ "templateId": "3812166c-ac9f-4e4e-96dd-c1336b5be378", "payload": "{payload}" }'{ "redirectTo": "string"}How would you rate this page?
Last updated on