revokeCredential.js file from below, use your API key, the credentialId, and run the file from your terminal.
revokeCredential.js
API Reference
Test any API in seconds directly from the docs.
Talk to an expert
Contact our sales team for support.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Invalidate a credential, rendering it no longer trustworthy or verifiable
revokeCredential.js file from below, use your API key, the credentialId, and run the file from your terminal.
const options = {
method: "DELETE",
headers: {
"X-API-KEY": "YOUR_API_KEY",
},
};
fetch(`https://staging.crossmint.com/api/v1-alpha1/credentials/${credentialId}`, options)
.then((response) => response.json())
.then((response) => console.log(JSON.stringify(response)))
.catch((err) => console.error(err));
node revokeCredential.js
Was this page helpful?
