---
title: "Private Query on Dune"
method: POST
path: "/v1/query/{queryId}/private"
---

# Private Query on Dune

`POST /v1/query/{queryId}/private`

This API allows for anyone to private a query. Only the API key
generated under the context of the owner of that query will work.

## Path parameters

- `queryId` integer, required

## Query parameters

- `api_key` string

## Headers

- `X-Dune-Api-Key` string, required

## Response `200`

OK

- ModelsUpdateQueryResponse
  - `query_id` integer — The unique ID of the query that was updated

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dune/apis/duneapi.md) · [All operations](https://skmtc.dev/dune/apis/duneapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dune/duneapi/revisions/f3a7a865f95b/schema)
