Skip to main content
Version: v0.3.1

Add credential

POST 

/api/management/credentials

Issue a new credential within this wallet

Request

Body

required
    contextstring[]
    Example: ["https://dataspace.example/context"]
    typestring[]
    Example: ["DataSpaceMembershipCredential"]
    idCredential ID (string)required
    keyIdstring

    credentialSubject

    objectrequired
    idstringrequired

Responses

Schema
    idstringrequired
    targetDidstringrequired

    credential

    object

    required

    @contextstring[]required
    typestring[]required
    idstring

    credentialSubject

    object

    required

    oneOf

    idstringrequired
    issuerstringrequired
    expirationDatedate-time
    issuanceDatedate-timerequired
    evidenceobject

    proof

    object

    required

    typestringrequired
    createddate-timerequired
    proofPurposestringrequired
    jwsstringrequired
    verificationMethodstringrequired
    selfIssuedbooleanrequired
    createddate-timerequired
    modifieddate-timerequired
    deleteddate-time