Specify the credential’s values and a recipient to send it to
With both a credential type and template defined, we can proceed to issue a credential.
First and foremost, the issuer must specify a valid recipient for the credential:
email:${userEmail}:${chain}
or {wallet address}
.In addition, the issuer must specify a credential object containing:
The credential subject (credential.subject) must respect the schema of the chosen Verifiable Credential type. You cannot add additional fields, nor exclude any that were previously set.
2034-02-02
(ISO) or none
to imply infinite expiration.Finally, the issuer can provide optional public metadata related to the specific credential, as such:
To issue your first credential, copy the issueCredential.js
file from below, add your API key, and templateId (that was returned to you in the previous step), and run the file from your terminal.
You can set up a webhook to know when the Verifiable Credential NFT minting is completed, or call the
action status API with the returned actionId
.
To check the template’s status you will need the nfts.create
API scope and run the following code.
Test any API in seconds directly from the docs.
Contact our sales team for support.
Specify the credential’s values and a recipient to send it to
With both a credential type and template defined, we can proceed to issue a credential.
First and foremost, the issuer must specify a valid recipient for the credential:
email:${userEmail}:${chain}
or {wallet address}
.In addition, the issuer must specify a credential object containing:
The credential subject (credential.subject) must respect the schema of the chosen Verifiable Credential type. You cannot add additional fields, nor exclude any that were previously set.
2034-02-02
(ISO) or none
to imply infinite expiration.Finally, the issuer can provide optional public metadata related to the specific credential, as such:
To issue your first credential, copy the issueCredential.js
file from below, add your API key, and templateId (that was returned to you in the previous step), and run the file from your terminal.
You can set up a webhook to know when the Verifiable Credential NFT minting is completed, or call the
action status API with the returned actionId
.
To check the template’s status you will need the nfts.create
API scope and run the following code.
Test any API in seconds directly from the docs.
Contact our sales team for support.