---
title: "Preview a DCQL query derived from credential definitions, without persisting it"
method: POST
path: "/queries/preview"
tags: ["Queries"]
---

# Preview a DCQL query derived from credential definitions, without persisting it

`POST /queries/preview`

Derives a multi-credential DCQL query from the referenced profile-bound verifiable-credential definitions and returns it together with per-credential-query provenance. Nothing is created or modified. Each definition reference contributes exactly one credential query. Requires the enterprise semantic binding license feature; without it the request fails with `403`.

## Request body

- PreviewDcqlQueryRequest — unresolved $ref

## Response `200`

The derived DCQL query plus provenance and warnings.

- PreviewDcqlQueryResult — unresolved $ref

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `404` — unresolved $ref

---

[API](https://skmtc.dev/sphereon-opensource/apis/oid4vp-dcql-query-configuration-admin-api-enterprise.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/oid4vp-dcql-query-configuration-admin-api-enterprise/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/oid4vp-dcql-query-configuration-admin-api-enterprise/revisions/d9e5b1747dd7/schema)
