API ReferenceSemantic CWT credentials
Sign a Semantic CWT credential
POST
/v2/credentials/compact-semantic/signReturns a signed Semantic CWT credential generated from a provided valid payload.
Roles
adminissuermanaged-issuer
Analytics Events
CREDENTIAL_COMPACT_SEMANTIC_SIGN_STARTCREDENTIAL_COMPACT_SEMANTIC_SIGN_SUCCESSCREDENTIAL_COMPACT_SEMANTIC_SIGN_FAIL
Authorization
bearerAuth AuthorizationBearer <token>
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": "did:web:organization.com", "vc": { "type": "AlumniCredential", "credentialSubject": { "property1": "...", "property2": "..." } } } }'{ "id": "string", "encoded": "CSS:/1/BASE_32_ENCODED_PAYLOAD", "decoded": { "iss": "did:web:example.com", "jti": "...", "nbf": 1645743759, "exp": 1645743759, "iat": 1645743759, "aud": "...", "sub": "...", "vc": { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/examples/v1" ], "type": [ "VerifiableCredential", "AlumniCredential" ], "credentialSubject": { "property1": "...", "property2": "..." } }, "status": { "url": "...", "index": 123 } }}How would you rate this page?