---
title: "Author a DCQL query from credential definitions and persist it"
method: POST
path: "/queries/authored"
tags: ["Queries"]
---

# Author a DCQL query from credential definitions and persist it

`POST /queries/authored`

Derives a multi-credential DCQL query from the referenced profile-bound verifiable-credential definitions, persists it to the versioned DCQL store under the caller-chosen `queryId`, and records request-role semantic-attribute usage lineage. Authoring an existing `queryId` appends a new version (the version in the response advances monotonically). Requires the enterprise semantic binding license feature; without it the request fails with `403` and nothing is persisted.

## Request body

- AuthorDcqlQueryRequest — unresolved $ref

## Response `201`

The persisted DCQL query with its id, version, provenance and warnings.

- AuthoredDcqlQueryResult — 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)
