Create credential definition
POST/v2/config/digital-wallet/openid/sdjwt/credential-definition
This endpoint is used to create credential definition.
Request
- application/json
Body
- Array [
- ]
Defines the usage purpose for the credential definition. For e.g. Issue Portable Document A1
Specifies the credential type to be present in verifiable credential issued.
credentialDefinition object
Defines the structure of the verifiable credential as per JSON schema specification.
Defines the structure of the verifiable credential as per JSON schema specification.
Defines the expiration for verifiable credential in days. If not specified, by default it is specified as 30 days.
display object
Defines name for the credential
Defines the discription for the credential definition.
Defines background color for the credential
Defines text color for the credential.
Possible values: [jwt_vc_json
, dc+sd-jwt
, mso_mdoc
]
Specifies the credential format for verifiable credential.
Specifies the credential type to be present in verifiable credential issued for ietf sd-jwt.
Specifies the credential type to be present in verifiable credential issued for mso mdoc.
claims object
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Specifies the verifiable credential supports revocation.
Specifies the verifiable credential should enforce wallet unit attestation
Possible values: [$.vc.credentialSubject
, $.vc
, $
]
Specifies the validation path for the credential definition
Possible values: [draft_11
, draft_13
]
Specifies the version of oid4vci draft specification
Specifies the key identifier of keys to be used for credential issuance
Possible values: [jwk
, did:key
, did:ebsi
, did:web
]
Specifies the trust anchor used for credential issuance
Possible values: [status_list
, status_list_2021
]
Specifies the revocation method for the credential definition
Specifies the verifiable credential supports credential uniqueness
Specifies the verifiable credential supports credential reissuance
credentialDefinitions object[]
Specifies the credential type to be present in verifiable credential issued.
credentialDefinition object
Defines the structure of the verifiable credential as per JSON schema specification.
Defines the structure of the verifiable credential as per JSON schema specification.
Defines the expiration for verifiable credential in days. If not specified, by default it is specified as 30 days.
display object
Defines name for the credential
Defines the discription for the credential definition.
Defines background color for the credential
Defines text color for the credential.
Possible values: [jwt_vc_json
, dc+sd-jwt
, mso_mdoc
]
Specifies the credential format for verifiable credential.
Specifies the credential type to be present in verifiable credential issued for ietf sd-jwt.
Specifies the credential type to be present in verifiable credential issued for mso mdoc.
claims object
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Specifies the verifiable credential supports revocation.
Specifies the verifiable credential should enforce wallet unit attestation
Possible values: [$.vc.credentialSubject
, $.vc
, $
]
Specifies the validation path for the credential definition
Possible values: [status_list
, status_list_2021
]
Specifies the revocation method for the credential definition
Specifies the verifiable credential supports credential uniqueness
Specifies the verifiable credential supports credential reissuance
Specifies the identifier for credential definition object
Responses
- 200
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
credentialDefinition object
Identifier for the credential definition
Specifies the credential type to be present in verifiable credential issued.
Defines the structure of the verifiable credential as per JSON schema specification.
Timestamp when the record was created.
Timestamp when the record was updated.
Defines the usage purpose for the credential definition. For e.g. Issue Portable Document A1
Defines the expiration for verifiable credential in days. If not specified, by default it is specified as 30 days.
display object
Defines name for the credential
Defines language for the credential. eg. en-GB
Defines the discription for the credential definition.
Defines background color for the credential
Defines text color for the credential.
Possible values: [jwt_vc_json
, dc+sd-jwt
, mso_mdoc
]
Specifies the credential format for verifiable credential.
Specifies the credential type to be present in verifiable credential issued for ietf sd-jwt.
Specifies the credential type to be present in verifiable credential issued for mso mdoc.
claims object
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Specifies the verifiable credential supports revocation.
Specifies the verifiable credential should enforce wallet unit attestation
Possible values: [$.vc.credentialSubject
, $.vc
, $
]
Specifies the validation path for the credential definition
Possible values: [draft_11
, draft_13
]
Specifies the version of oid4vci draft specification
Specifies the key identifier of keys to be used for credential issuance
Possible values: [jwk
, did:key
, did:ebsi
, did:web
]
Specifies the trust anchor used for credential issuance
Possible values: [status_list
, status_list_2021
]
Specifies the revocation method for the credential definition
Specifies the verifiable credential supports credential uniqueness
Specifies the verifiable credential supports credential reissuance
credentialDefinitions object[]
Specifies the credential type to be present in verifiable credential issued.
credentialDefinition object
Defines the structure of the verifiable credential as per JSON schema specification.
Defines the structure of the verifiable credential as per JSON schema specification.
Defines the expiration for verifiable credential in days. If not specified, by default it is specified as 30 days.
display object
Defines name for the credential
Defines the discription for the credential definition.
Defines background color for the credential
Defines text color for the credential.
Possible values: [jwt_vc_json
, dc+sd-jwt
, mso_mdoc
]
Specifies the credential format for verifiable credential.
Specifies the credential type to be present in verifiable credential issued for ietf sd-jwt.
Specifies the credential type to be present in verifiable credential issued for mso mdoc.
claims object
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Defines the structure of the verifiable credential as per JSON schema specification for ietf sd-jwt and mso mdoc.
Specifies the verifiable credential supports revocation.
Specifies the verifiable credential should enforce wallet unit attestation
Possible values: [$.vc.credentialSubject
, $.vc
, $
]
Specifies the validation path for the credential definition
Possible values: [status_list
, status_list_2021
]
Specifies the revocation method for the credential definition
Specifies the verifiable credential supports credential uniqueness
Specifies the verifiable credential supports credential reissuance
Specifies the identifier for credential definition object
{
"credentialDefinition": {
"credentialDefinitionId": "string",
"type": [
"string"
],
"credentialDefinition": {},
"createdAt": 0,
"updatedAt": 0,
"label": "string",
"expirationInDays": 0,
"display": {
"name": "string",
"locale": "string",
"description": "string",
"backgroundColor": "string",
"textColor": "string"
},
"credentialFormat": "jwt_vc_json",
"vct": "string",
"doctype": "string",
"claims": {},
"supportRevocation": true,
"enforceWUA": true,
"validationPath": "$.vc.credentialSubject",
"version": "draft_11",
"kid": "string",
"trustAnchor": "jwk",
"revocationMethod": "status_list",
"enforceCredentialUniqueness": true,
"supportCredentialReissuance": true,
"credentialDefinitions": [
{
"type": [
"string"
],
"credentialDefinition": {},
"expirationInDays": 0,
"credentialDefinitionUri": "string",
"display": {
"name": "string",
"description": "string",
"backgroundColor": "string",
"textColor": "string"
},
"credentialFormat": "jwt_vc_json",
"vct": "string",
"doctype": "string",
"claims": {},
"supportRevocation": true,
"enforceWUA": true,
"validationPath": "$.vc.credentialSubject",
"revocationMethod": "status_list",
"enforceCredentialUniqueness": true,
"supportCredentialReissuance": true,
"id": "string"
}
]
}
}