Sign a Compact Semantic Credential
Returns a signed Compact Semantic Credential generated from a provided valid payload.
Analytic events
- CREDENTIAL_COMPACT_SEMANTIC_SIGN_START
- CREDENTIAL_COMPACT_SEMANTIC_SIGN_SUCCESS
- CREDENTIAL_COMPACT_SEMANTIC_SIGN_FAIL
Request Body schema: application/jsonrequired
Compact Semantic Credential payload to sign
Compact Semantic Credential signed
Failed to sign Compact Semantic Credential, invalid payload, etc
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "payload": {
- "iss": "did:web:organization.com",
- "nbf": 1645743759,
- "exp": 1645743759,
- "iat": 1645743759,
- "aud": "...",
- "sub": "...",
- "vc": {
- "type": "AlumniCredential",
- "credentialSubject": {
- "property1": "...",
- "property2": "..."
}
}
}, - "revocable": false,
- "isRevoked": false
}
- 200
{- "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": {
- "type": [
- "VerifiableCredential",
- "AlumniCredential"
], - "credentialSubject": {
- "property1": "...",
- "property2": "..."
}
}, - "status": {
- "url": "...",
- "index": 123
}
}
}
Format a Compact Semantic Credential as a QR code
Returns a QR code representation of a Compact Semantic 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
Request Body schema: application/jsonrequired
QR code generated
Bad Request
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "payload": "CSS:/1/2KCE3IQEJB5DCMSMGRKXI3IBE2QFSANKVACBUYQYB2HQKGTCDAHI6BQ2MIMA5DYBPAUWI2L...",
- "width": 250
}
- 400
{- "code": "BadRequest",
- "message": "Validation Error",
- "details": [
- {
- "value": "1",
- "msg": "must be a string",
- "param": "payload",
- "location": "body"
}
]
}
Format a Compact Credential as a PDF
Returns a PDF representation of a provided Compact 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_SEMANTIC_PDF_CREATE_START
- CREDENTIAL_COMPACT_SEMANTIC_PDF_CREATE_SUCCESS
- CREDENTIAL_COMPACT_SEMANTIC_PDF_CREATE_FAIL
PDF created
Bad Request
Not Found
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "templateId": "4eea7654-d4c5-4eba-bd7a-5ca334d54725",
- "payload": "{payload}"
}
Format a Compact Semantic Credential as an Apple Pass
Returns an Apple Pass representation of a provided Compact Semantic Credential based on an existing Apple Pass template.
The request will fail if the provided credential isn't valid or has expired.
Analytic events
- CREDENTIAL_COMPACT_SEMANTIC_APPLE_PASS_CREATE_START
- CREDENTIAL_COMPACT_SEMANTIC_APPLE_PASS_CREATE_SUCCESS
- CREDENTIAL_COMPACT_SEMANTIC_APPLE_PASS_CREATE_FAIL
Apple Pass created
Bad Request
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "templateId": "3812166c-ac9f-4e4e-96dd-c1336b5be378",
- "payload": "{payload}"
}
- 400
{- "code": "string",
- "message": "string",
- "details": [
- {
- "value": "string",
- "msg": "Invalid value",
- "param": "id",
- "location": "body"
}
]
}
Format a Compact Semantic Credential as a Google Pass
Returns a Google Pass representation of a provided Compact Credential based on an existing Google Pass template.
The request will fail if the provided credential isn't valid or has expired.
Analytic events
- CREDENTIAL_COMPACT_SEMANTIC_GOOGLE_PASS_CREATE_START
- CREDENTIAL_COMPACT_SEMANTIC_GOOGLE_PASS_CREATE_SUCCESS
- CREDENTIAL_COMPACT_SEMANTIC_GOOGLE_PASS_CREATE_FAIL
Google Pass created
Bad Request
- Payload
- curl
- Node.js
- JavaScript
- Python
- C#
- Java
{- "templateId": "3812166c-ac9f-4e4e-96dd-c1336b5be378",
- "payload": "{payload}"
}
- 200
- 400
{
}