Skip to main content
Version: Next

CredentialRequest

formatstringrequired

Possible values: [jwt_vc_json-ld, jwt_vc_json]

Example: jwt_vc_json-ld
credential_definition object
@contextstring[]required
Example: ["https://www.w3.org/2018/credentials/v1"]
typestring[]required
Example: ["VerifiableCredential"]
credentialSubjectobject
Example: {"id":{"mandatory":true,"value_type":"string","display":[{"name":"ID","locale":"en-US"}]}}
proof objectrequired
oneOf
proof_typestringrequired
Example: jwt
jwtstringrequired
Example: jwt-token-sample
CredentialRequest
{
"format": "jwt_vc_json-ld",
"credential_definition": {
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential"
],
"credentialSubject": {
"id": {
"mandatory": true,
"value_type": "string",
"display": [
{
"name": "ID",
"locale": "en-US"
}
]
}
}
},
"proof": {
"proof_type": "jwt",
"jwt": "jwt-token-sample"
}
}