---
title: "Execute a query pipeline"
method: POST
path: "/v1/query/{query_id}/pipeline/execute"
---

# Execute a query pipeline

`POST /v1/query/{query_id}/pipeline/execute`

Builds a query pipeline from the specified query and executes it. A pipeline allows you to chain multiple queries together and execute them as a single unit.

## Path parameters

- `query_id` integer, required

## Query parameters

- `api_key` string

## Headers

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

## Request body

- ModelsExecuteQueryPipelineRequest
  - `performance` 'small' | 'medium' | 'large', required
  - `query_parameters` object — SQL Query parameters in json key-value pairs. Each parameter is to be provided in key-value pairs. This enables you to execute a parameterized query with the provided values for your parameter keys.

## Response `200`

OK

- ModelsExecuteQueryPipelineResponse
  - `pipeline_execution_id` string — Unique identifier for the pipeline execution. Use this ID to check the status and retrieve results of the pipeline execution.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `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)
