Credentials
Create a credential schema
Create a new credential schema for the authenticated tenant. The schema defines the verifiable-credential type, wire format, claim attributes (and which are selectively disclosable), whether issued credentials are revocable, and optional wallet branding. The combination of name + version must be unique within the tenant. Once created, the schema can be referenced by credential templates. The revocable flag is immutable after creation. Requires Authorization: Bearer <tenant API key>.
post/v1/credential-schemas
Request body
Example request
{
"name": "Loyalty Membership",
"version": "1.0",
"vct": "https://acme-air.didit.me/credentials/loyalty-membership",
"format": "sd_jwt_vc",
"attributes": [
{
"name": "given_name",
"type": "string",
"sd": true
}
],
"revocable": true,
"branding": {
"background_color": "#2567FF",
"text_color": "#FFFFFF",
"logo_uri": "https://acme-air.didit.me/logo.png"
}
}Response
No response body