Skip to main content

Templates and catalogues

Look up the values that a credential definition uses: the templates to start from, the credential categories and the OAuth 2.0 scopes in use.

List credential definition templates

Lists the credential definition templates: ready claims for common credentials (for example PID, LPID, mDL, a student ID or a boarding pass), from the rulebooks of the platform. Each item is one credential format of the newest version of a rulebook, with the id `<rulebook id>:<version>:<format>`, so a `name` comes once for each format of its rulebook. The list is in the order of the rulebook id, then `dc+sd-jwt`, `jwt_vc_json`, `mso_mdoc`. Copy the `schema` of a template into a credential configuration of [Create credential definition](/docs/openid4vc-api/config-create-digital-wallet-open-id-credential-definition). The PID templates follow PID Rulebook v1.7, so a credential definition made from them passes the PID rules of the create call.