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; verifier bindings and verification templates reference them by id and pinned version, and trust attachments by id.

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.

Deeper reference​

DCQL REST API, DCQL Store and DCQL Authoring describe the store, PUT versus PATCH semantics and the channel projection. The Postman folder 3. Tenant APIs > Verify credentials creates a DCQL query and binds it to the verifier.

Next journey​

Continue with Build trust domains and anchors.