Get access to credentials you care about
Retrieving and effectively presenting credentials is essential for issuers, verifiers, and credential subjects. However, doing so requires interfacing with the blockchain, 3rd party services to fetch NFTs, all while at the same time struggling with unpredictable network issues, and data inconsistency.
Crossmint’s Verifiable Credentials API and SDK simplify credential management, allowing you to seamlessly retrieve and use verifiable credentials where they matter most.
Crossmint’s Verifiable Credentials API is primarily meant to be used by issuers. It’s designed for robust backend operations, enabling seamless, automated credential retrieval without requiring user interaction.
The API integrates with your existing server-side infrastructure, ensuring efficient and scalable credential management. With the API, you can implement complex business logic, providing unparalleled control and customization.
You can retrieve a Verifiable Credential via the Crossmint API using different identifiers associated with the credential itself, or the NFT associated with the credential.
urn:uuid:<UUID>
<chain>:<contractAddress>:<tokenId>
There is no access control on credential retrieval. Credential data is public and can be retrieved by anyone. Choose to encrypt your credentials if you need to protect your data.
Credential retrieval via the crossmint API will not work for delegated storage.
To retrieve the credential, copy the retrieveCredential.js
file from below, use your API key, the credentialId
, and run the file from your terminal.
Crossmint’s Verifiable Credentials SDK is primarily meant to be used by verifiers. Using the Verifiable Credentials client-side SDK is advantageous in scenarios where direct interaction with the user’s wallet is preferred, directly integrating their credentials with your browser-based application.
Using the SDK requires a Crossmint developer account and a client-side API key scoped to credentials.read
and credentials.decrypt
. Go to the Developers -> API Keys
tab, click on New API Key
in the Client-side keys
section, and select the API key scopes.
You can download the SDK here.
The SDKs offer functions to easily retrieve and filter NFTs associated with credentials. For example, the getCredentialNFTs
function fetches all VC NFTs in a wallet and lets you filter by credential type or issuer.
Below, we show how easy it is to retrieve academic credentials from a user’s wallet.
Now that the credential is retrieved, it’s important to decrypt it and verify it.
Test any API in seconds directly from the docs.
Contact our sales team for support.