Revoke Verifiable Credential
Last updated
Last updated
This method lists the available Verifiable Credential Templates. The weightage for this API is 1
POST
https://api.krypcore.com/api/v0/did/revokeVC
To Revoke Verifiable Credential under the given instance.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"Data": [{
"mutable": true,
"name": "PermanentResidentCard",
"template": null
}, {
"mutable": false,
"name": "DataConsortium",
"template": null
}, {
"mutable": true,
"name": "KycCredential",
"template": null
}, {
"mutable": true,
"name": "AmletCredential",
"template": null
}, {
"mutable": true,
"name": "VerifiablePresentation",
"template": null
}, {
"mutable": true,
"name": "ParticipantCredential",
"template": null
}, {
"mutable": true,
"name": "Email",
"template": null
}, {
"mutable": false,
"name": "EbsiVerifiableAccreditationToAccredit",
"template": null
}, {
"mutable": true,
"name": "UniversityDegree",
"template": null
}, {
"mutable": false,
"name": "KybMonoCredential",
"template": null
}, {
"mutable": false,
"name": "StatusList2021Credential",
"template": null
}, {
"mutable": false,
"name": "EbsiVerifiableAttestationLegal",
"template": null
}, {
"mutable": true,
"name": "VerifiableId",
"template": null
}, {
"mutable": true,
"name": "StudentId",
"template": null
}, {
"mutable": false,
"name": "VerifiableAttestation",
"template": null
}, {
"mutable": false,
"name": "EbsiEuropass",
"template": null
}, {
"mutable": false,
"name": "KybCredential",
"template": null
}, {
"mutable": false,
"name": "Europass",
"template": null
}, {
"mutable": false,
"name": "ProofOfResidence",
"template": null
}, {
"mutable": false,
"name": "EbsiAccreditedVerifiableAttestation",
"template": null
}, {
"mutable": false,
"name": "LegalPerson",
"template": null
}, {
"mutable": false,
"name": "VerifiableVaccinationCertificate",
"template": null
}, {
"mutable": false,
"name": "Iso27001Certificate",
"template": null
}, {
"mutable": false,
"name": "VerifiableMandate",
"template": null
}, {
"mutable": false,
"name": "EbsiVerifiableAttestationGeneric",
"template": null
}, {
"mutable": false,
"name": "GaiaxCredential",
"template": null
}, {
"mutable": false,
"name": "EbsiVerifiableAttestationPerson",
"template": null
}, {
"mutable": false,
"name": "EbsiDiplomaVerifiableAccreditation",
"template": null
}, {
"mutable": true,
"name": "VerifiableAuthorization",
"template": null
}, {
"mutable": true,
"name": "VerifiableDiploma",
"template": null
}, {
"mutable": true,
"name": "DataSelfDescription",
"template": null
}, {
"mutable": false,
"name": "NEOM/StudentCard",
"template": null
}, {
"mutable": false,
"name": "DataServiceOffering",
"template": null
}, {
"mutable": false,
"name": "DeqarReport",
"template": null
}, {
"mutable": false,
"name": "PeerReview",
"template": null
}, {
"mutable": false,
"name": "OpenBadgeCredential",
"template": null
}, {
"mutable": false,
"name": "EuropeanBankIdentity",
"template": null
}, {
"mutable": true,
"name": "ServiceOfferingCredential",
"template": null
}],
"Message": "",
"Status": "SUCCESS"
}
Take a look at how you might call this method using our official libraries, or via curl
:
curl --location 'https://api.krypcore.com/api/v0/did/revokeVC' \
--header 'Authorization: xxxxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"issuerDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n",
"proofType": "LD_PROOF",
"statusType": "StatusList2021Entry",
"subjectDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n"
}'
const axios = require('axios');
let data = JSON.stringify({
"issuerDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n",
"proofType": "LD_PROOF",
"statusType": "StatusList2021Entry",
"subjectDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.krypcore.com/api/v0/did/revokeVC',
headers: {
'Authorization': 'xxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
import json
url = "https://api.krypcore.com/api/v0/did/revokeVC"
payload = json.dumps({
"issuerDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n",
"proofType": "LD_PROOF",
"statusType": "StatusList2021Entry",
"subjectDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n"
})
headers = {
'Authorization': 'xxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.krypcore.com/api/v0/did/revokeVC"
method := "POST"
payload := strings.NewReader(`{
"issuerDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n",
"proofType": "LD_PROOF",
"statusType": "StatusList2021Entry",
"subjectDid": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "xxxxxxxxxxxxxxx")
req.Header.Add("DappId", "xxxxxxxxxxxxxxx")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Authorization*
String
User Auth Key obtained from Dash
DappId*
String
DappId
issuerDid*
String
l Id
proofType*
String
statusType
String
subjectDid
String