Programmatically Issue a Credential

General steps to implement based on events in applications and onchain

Programmatically Issue Verifiable Credentials (VCs)

Issue Verifiable Credentials (VCs) programmatically when certain events occur, such as when a user completes specific actions, swaps a token, completes a level in a game, or mints an NFT. VCs can be issued to a user's ETH address or DID. The options are endless and only bound by your imagination!


Generate a did:web to ensure credentials are signed with keys that you control

How it works

  1. Select event(s) that will result in credential issuance

  2. Leverage our API endpoint and set up logic in your platform to issue credentials

    • Determine conditions for issuing credentials to a users

    • Send POST requests to the API to issue the credentials

  3. User receives credentials

API Endpoint

Usage example

curl --location '' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Authorization: Bearer <your Disco API key>' \
--data '{
    "issuer": "did:3:123abcexample",
    "schemaUrl": "",
    "recipientDID": "did:3:456defexample",
    "subjectData": {
        "memberId": "123XYZ",
        "membershipDescription": "Demo membership to showcase Disco API",
        "membershipLevel": "Permanent",
        "membershipType": "Developer",
        "organization": ""
    "expirationDate": ""

Last updated