Skip to main content
Version: v0.25.0 (Latest)

Author DCQL queries

A DCQL query tells a wallet which credentials and claims the verifier needs. Queries are tenant resources with an immutable version history; verification templates and trust attachments reference them by id and version.

Complete first: Set up the verifier.

Steps and why they come in this order​

StepWhy here
1. Review existing queriesQueries are shared by templates and attachments. Reuse or version an existing query rather than creating a near duplicate.
2. Create and edit a queryThe query must exist before a template or attachment can reference it.
3. Derive a query from semantic-model channelsWhen credentials are governed in the semantic model, derive the query mechanically instead of hand-writing claim paths.
4. Manage query versionsTemplates can pin a version. Read the history before pinning and restore when a change must be undone.

Format-specific claim paths​

CredentialDCQL formatType matchClaim paths
SD-JWT VCdc+sd-jwtmeta.vct_valuesJSON claim names such as family_name
ISO mdocmso_mdocmeta.doctype_valueNamespace and element such as org.iso.18013.5.1/family_name
W3C VCDM 1.1 JWTjwt_vc_jsonVCDM 1.1 context and typesPaths below the VCDM 1.1 credential
W3C VCDM 2.0 JWTjwt_vc_json-ldVCDM 2.0 context and typesPaths for the VCDM 2.0 credential

Do not reuse an SD-JWT claim path for mdoc or a VCDM 1.1 query for a VCDM 2.0 credential.

The dcql-edk-openapi.yml contract is marked documentation only in the API catalog until its runtime owner is confirmed; the CRUD operations it extends come from the IDK DCQL store and are mounted wherever the DCQL admin adapter is deployed. Check the Developer Console catalog for your tenant before depending on the authoring and version routes.

Deeper reference​

DCQL REST API, DCQL Store and DCQL Authoring describe the store, PUT versus PATCH semantics and the channel projection. The 21 DCQL Queries Postman folder creates the EuPid, mdl and combined queries.

Next journey​

Continue with Build trust domains and anchors.