Create-verifiable credentials

Every partner of Komet can become a polygon ID issuer to verify user credentials.

Through this API endpoint, you can create verifiable credentials on Polygon leveraging Polygon ID infrastructure with various attributes of your choice, set an expiration timestamp for it, and give a name to your credential.

// Some code
Request:
{
	partnerId: String,
	partnerKey: String,
	name: String,
	expiration: Timestamp(ms),
	attributes:[{
		name: String,
		type: String (Enum),
		required: boolean,
		defaultValue: value,
	}],
}

Response:
{
    id: String (please store this),
    name: String,
    numClaims: Number,
    isOpen: Boolean,
    wallets: [String],
    dids: [String],
    fields: [
        attributes
    ],
    expiration: Timestamp
}

Last updated