ElevenID
ElevenID LLC
Login
All Posts
Core Objects
2 of 4
8 min read

Credential Templates

Credential Templates define what gets issued: the schema, claims map, validity rules, and selective disclosure configuration that governs every credential type in your system.


A Credential Template is the blueprint for a credential type. It says: what claims are included, how they're derived from the applicant's submitted data, how long the credential is valid, and which claims support selective disclosure. Every credential issued by a MIP deployment is produced from a Credential Template.

Template Components

Every template has a type identifier (matching the W3C VC type), a JSON Schema for the claims, a claims map showing how application fields become credential claims, a TTL (time-to-live) and re-issuance window, and selective disclosure configuration that declares which claims are always visible, which can be selectively revealed, and which support zero-knowledge predicates.

Credential Template (simplified)

json
{
  "id": "employee-badge-v2",
  "credential_type": "EmployeeBadgeCredential",
  "schema": "$ref:schemas/employee-badge.json",
  "claims_map": {
    "given_name": "application.first_name",
    "family_name": "application.last_name",
    "employee_id": "application.hr_id",
    "department": "application.team",
    "employment_status": ""active""
  },
  "validity": {
    "ttl": "P1Y",
    "reissue_window": "P30D"
  },
  "selective_disclosure": {
    "always_disclosed": ["employment_status"],
    "selectively_disclosed": ["department", "given_name", "family_name"],
    "zk_predicates": ["age_over_21"]
  }
}
Privacy by Design

Credential Templates treat privacy as a design constraint, not an afterthought. By declaring which claims are always disclosed, which can be revealed selectively, and which support zero-knowledge predicates, the template author makes privacy decisions at design time - before a single credential is ever issued. This makes data minimization auditable and systematic.