Sign a Semantic CWT credential
Roles
Analytics Events
/v2/credentials/compact-semantic/signReturns a signed Semantic CWT credential generated from a provided valid payload.
Analytic events
- CREDENTIAL_COMPACT_SEMANTIC_SIGN_START
- CREDENTIAL_COMPACT_SEMANTIC_SIGN_SUCCESS
- CREDENTIAL_COMPACT_SEMANTIC_SIGN_FAIL
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 } }}How would you rate this page?
Delete an Apple Pass template DELETE
Deletes an existing Apple Pass template by providing its ID. ### **Analytic events** * CREDENTIAL_COMPACT_APPLE_PASS_TEMPLATE_DELETE_START * CREDENTIAL_COMPACT_APPLE_PASS_TEMPLATE_DELETE_SUCCESS * CREDENTIAL_COMPACT_APPLE_PASS_TEMPLATE_DELETE_FAIL
Format a Semantic CWT credential as a QR code POST
Returns a QR code representation of a Semantic CWT credential from a provided encoded string representation of that credential. ### **Analytic events** * CREDENTIAL_COMPACT_SEMANTIC_QRCODE_CREATE_START * CREDENTIAL_COMPACT_SEMANTIC_QRCODE_CREATE_SUCCESS * CREDENTIAL_COMPACT_SEMANTIC_QRCODE_CREATE_FAIL