Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.
GET
/
v1
/
query
/
{query_id}
/
pipeline
Get query pipeline
curl --request GET \ --url https://api.dune.com/api/v1/query/{query_id}/pipeline \ --header 'X-Dune-Api-Key: <x-dune-api-key>'
This endpoint returns the pipeline structure that would be executed for a given query, allowing you to inspect the lineage and execution order before running the pipeline. This is useful for understanding dependencies and planning pipeline executions.The pipeline definition contains all the nodes (queries and materialized view refreshes) in the correct dependency order.
The query_parameters should be passed as a URL-encoded JSON string in the query parameter, where keys are parameter names and values are parameter values.
The response contains a pipeline object with a nodes array. Each node represents either a query execution or materialized view refresh, along with its dependencies.Example response:
The pipeline definition containing nodes to execute
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Dune Docs","description":"Official documentation for building with Dune's data platform, query engine, and API.","colors":{"primary":"#0f0f15","light":"#ffffff","dark":"#0f0f15"},"logo":{"light":"https://mintcdn.com/dune/zh-3B8LgVmyrKOaG/logo/dune-logo-light.svg?fit=max\u0026auto=format\u0026n=zh-3B8LgVmyrKOaG\u0026q=85\u0026s=6fec71d5070d0923eb2924321131b1c2","dark":"https://mintcdn.com/dune/zh-3B8LgVmyrKOaG/logo/dune-logo-dark.svg?fit=max\u0026auto=format\u0026n=zh-3B8LgVmyrKOaG\u0026q=85\u0026s=2501750983cc95aa72d40acc6f005bd9","href":"https://docs.dune.com/"},"navbar":{"links":[{"href":"mailto:support@dune.com","label":"Support"}],"primary":{"type":"button","label":"Start building","href":"https://dune.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/dune-analytics","github":"https://github.com/duneanalytics","x":"https://x.com/dune","telegram":"https://t.me/dune_updates","youtube":"https://www.youtube.com/@dunecom"}},"seo":{"metatags":{"title":"Dune Docs","description":"Official documentation for building with Dune's data platform, query engine, and API.","og:site_name":"Dune Docs","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"family":"Geist"},"integrations":{"amplitude":{"apiKey":"e76ce253e6eaa36e3be8e6872101e33a"},"ga4":{"measurementId":"G-H1G057R0KN"},"gtm":{"tagId":"GTM-P46XP3Z5"}},"contextual":{"options":["chatgpt","claude","copy","view"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dune","hasAudioNarration":false,"actualSubdomain":"dune","customDomains":["docs.dune.com"],"gitSource":{"type":"github","owner":"duneanalytics","repo":"dune-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb20b07ebcfcb7ce776407","collectionId":"e93bc116-f70a-4d5b-a628-3a2361e85f84","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb20b07ebcfcb7ce776407"},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adb20b07ebcfcb7ce776407","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Data Catalog","count":1405},{"language":"default","tag":"EVM Networks","count":895},{"language":"default","tag":"Decoded","count":373},{"language":"default","tag":"Raw","count":326},{"language":"default","tag":"Non-EVM Networks","count":270},{"language":"default","tag":"Curated Data","count":156},{"language":"default","tag":"Curated","count":129},{"language":"default","tag":"DEX","count":89},{"language":"default","tag":"THORChain","count":72},{"language":"default","tag":"API Reference","count":67}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":"#navigation-items .sidebar-group>li>a,#search-bar-entry,#sidebar-group>li>a,#topbar-cta-button>a>span,.chat-assistant-floating-input>div{border-radius:9999px}.dark #topbar-cta-button>a>span{background-color:#fff}.dark #topbar-cta-button>a>span+div>span,.dark #topbar-cta-button>a>span+div>svg{color:#0f0f15}#page-context-menu>button:first-child{border-top-left-radius:9999px;border-bottom-left-radius:9999px}#page-context-menu>button:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.cta-links a,.cta-links a:active,.cta-links a:hover,.cta-links a:visited,.note-container a,[class*=Note] a,[class*=callout] a,[class*=note] a,aside a,div[class*=admonition] a,div[role=note] a{text-decoration-color:#fff!important;text-decoration-thickness:2px!important;text-decoration-line:underline!important}table a{text-decoration:underline!important;text-underline-offset:2px;transition:opacity .2s ease}table a:hover{opacity:.7}"}],"page":{"pagePath":"api-reference/queries/endpoint/get-query-pipeline","slug":"/api-reference/queries/endpoint/get-query-pipeline","pageMetadata":{"title":"Get Query Pipeline","openapi":"GET /v1/query/{query_id}/pipeline","description":"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.","href":"/api-reference/queries/endpoint/get-query-pipeline"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Info,Note}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`Minimum required API key scope: `,_jsx(_components.code,{children:`Read`})]})}),`\n`,_jsx(_components.p,{children:`Retrieve the pipeline definition for a specific query, including all nested materialized views that the query depends on.`}),`\n`,_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`This endpoint returns the pipeline structure that would be executed for a given query, allowing you to inspect the lineage and execution order before running the pipeline. This is useful for understanding dependencies and planning pipeline executions.`}),`\n`,_jsx(_components.p,{children:`The pipeline definition contains all the nodes (queries and materialized view refreshes) in the correct dependency order.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`query_parameters`}),` should be passed as a URL-encoded JSON string in the query parameter, where keys are parameter names and values are parameter values.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`use-cases`,children:`Use Cases`}),`\n`,_jsx(Heading,{level:`3`,id:`inspect-pipeline-before-execution`,children:`Inspect Pipeline Before Execution`}),`\n`,_jsx(_components.p,{children:`Check what queries and materialized views will be executed:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.dune.com/api/v1/query/3493826/pipeline?performance=medium\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Dune-Api-Key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DUNE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`validate-dependencies-with-parameters`,children:`Validate Dependencies with Parameters`}),`\n`,_jsx(_components.p,{children:`Understand query dependencies before running a pipeline with specific parameters:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Query parameters as JSON string`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.dune.com/api/v1/query/3493826/pipeline?performance=large\u0026query_parameters=%7B%22blockchain%22%3A%22ethereum%22%7D\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Dune-Api-Key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DUNE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response-structure`,children:`Response Structure`}),`\n`,_jsxs(_components.p,{children:[`The response contains a `,_jsx(_components.code,{children:`pipeline`}),` object with a `,_jsx(_components.code,{children:`nodes`}),` array. Each node represents either a query execution or materialized view refresh, along with its dependencies.`]}),`\n`,_jsx(_components.p,{children:`Example response:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pipeline\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"nodes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dependencies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"materialized_view_refresh\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dune.analyst.mv_base_data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"performance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dependencies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query_execution\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3493826`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"performance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"medium\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`best-practices`,children:`Best Practices`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Use Before Pipeline Execution`,id:`use-before-pipeline-execution`,children:_jsx(_components.p,{children:`Call this endpoint before executing a pipeline to understand what will be executed and in what order. This helps with planning and cost estimation.`})}),_jsx(Accordion,{title:`Validate Complex Dependencies`,id:`validate-complex-dependencies`,children:_jsx(_components.p,{children:`For queries with many dependencies, use this endpoint to visualize the execution graph and identify potential bottlenecks.`})}),_jsx(Accordion,{title:`Test with Parameters`,id:`test-with-parameters`,children:_jsx(_components.p,{children:`When using query parameters, test the pipeline structure with different parameter values to ensure the lineage is resolved correctly.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`related-endpoints`,children:`Related Endpoints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/executions/endpoint/execute-query-pipeline`,children:`Execute Query Pipeline`}),` - Execute a query’s pipeline`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/pipelines/endpoint/execute-pipeline`,children:`Execute Pipeline`}),` - Execute a pipeline based on lineage`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/pipelines/endpoint/get-pipeline-status`,children:`Get Pipeline Status`}),` - Check pipeline execution status`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Query Pipeline","openapi":"GET /v1/query/{query_id}/pipeline","description":"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.","href":"/api-reference/queries/endpoint/get-query-pipeline"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Use Cases","slug":"use-cases","depth":2,"children":[{"title":"Inspect Pipeline Before Execution","slug":"inspect-pipeline-before-execution","depth":3,"children":[]},{"title":"Validate Dependencies with Parameters","slug":"validate-dependencies-with-parameters","depth":3,"children":[]}]},{"title":"Response Structure","slug":"response-structure","depth":2,"children":[]},{"title":"Best Practices","slug":"best-practices","depth":2,"children":[]},{"title":"Related Endpoints","slug":"related-endpoints","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dune/3dc9988ffc23fc85/favicon-switcher.js","/_mintlify/custom/dune/11037b9cc10a9f51/amplitude.js"],"openApiReferenceData":{"operation":{"description":"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.","parameters":["38123479-d58c-4b79-b6d4-5485f96ee5db","c7218cdc-2d35-4b8b-9a59-cd5dd6a63ae0","9c377527-593b-4bd2-9a20-c78487d0f6f2","7e186a16-af7a-4cda-a1df-28e7520d3442","520a8ffb-3274-4990-9309-76e4b24b588e"],"responses":{"200":"12762ff9-2080-452f-96a6-beea3599570a","400":"8c70ee7d-5e08-41da-a76a-3c6930169a5e","401":"fff6bf47-52d1-4ab1-bede-73bb77c7f56a","404":"f33e1e64-d4b9-433f-8a4c-b1ef21341ae4","500":"5637de06-28d3-4925-81e8-42e420727606"},"summary":"Get query pipeline","x-required-scope":"Read","method":"get","type":"path","servers":["aecaf754-5ff8-4604-90cb-3dba43f668be"],"security":[],"path":"/v1/query/{query_id}/pipeline","baseUrlOptions":["https://api.dune.com/api"],"title":"Get query pipeline","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"38123479-d58c-4b79-b6d4-5485f96ee5db":{"description":"API Key for the service","in":"header","name":"X-Dune-Api-Key","required":true,"schema":{"type":"string","isRequired":true,"description":"API Key for the service","uniqueKey":"","typeLabel":"string"}},"c7218cdc-2d35-4b8b-9a59-cd5dd6a63ae0":{"description":"Alternative to using the X-Dune-Api-Key header","in":"query","name":"api_key","schema":{"type":"string","description":"Alternative to using the X-Dune-Api-Key header","uniqueKey":"","typeLabel":"string"}},"9c377527-593b-4bd2-9a20-c78487d0f6f2":{"description":"Unique identifier of the query","in":"path","name":"query_id","required":true,"schema":{"type":"integer","isRequired":true,"description":"Unique identifier of the query","uniqueKey":"","typeLabel":"integer"}},"7e186a16-af7a-4cda-a1df-28e7520d3442":{"description":"The performance engine tier. Can be `small`, `medium`, or `large`.","in":"query","name":"performance","schema":{"type":"string","description":"The performance engine tier. Can be `small`, `medium`, or `large`.","uniqueKey":"","typeLabel":"string"}},"520a8ffb-3274-4990-9309-76e4b24b588e":{"description":"SQL Query parameters in json key-value pairs","in":"query","name":"query_parameters","schema":{"type":"string","description":"SQL Query parameters in json key-value pairs","uniqueKey":"","typeLabel":"string"}}},"responses":{"12762ff9-2080-452f-96a6-beea3599570a":{"content":{"application/json":{"schema":{"properties":{"pipeline":{"type":"object","description":"The pipeline definition containing nodes to execute","properties":{"nodes":{"description":"List of nodes in the pipeline. Nodes are executed in dependency order.","items":{"properties":{"dependencies":{"description":"List of node IDs that this node depends on. Nodes are executed in dependency order.","items":{"type":"integer","uniqueKey":"pipeline.nodes.items.[INDEX].dependencies.items.[INDEX]","typeLabel":"integer"},"type":"array","uniqueKey":"pipeline.nodes.items.[INDEX].dependencies","typeLabel":"integer[]"},"id":{"description":"Unique identifier of the node in the pipeline","example":1,"type":"integer","uniqueKey":"pipeline.nodes.items.[INDEX].id","typeLabel":"integer"},"materialized_view_refresh":{"type":"object","description":"Materialized view refresh node configuration. Required if this node refreshes a materialized view.","properties":{"name":{"description":"Name of the materialized view to refresh","example":"mv_1","type":"string","uniqueKey":"pipeline.nodes.items.[INDEX].materialized_view_refresh.name","typeLabel":"string"},"performance":{"description":"The performance engine tier the refresh will be run on. Can be `small`, `medium`, or `large`.","enum":["small","medium","large"],"example":"medium","type":"string","uniqueKey":"pipeline.nodes.items.[INDEX].materialized_view_refresh.performance","typeLabel":"enum\u003cstring>"}},"uniqueKey":"pipeline.nodes.items.[INDEX].materialized_view_refresh","typeLabel":"object"},"query_execution":{"type":"object","description":"Query execution node configuration. Required if this node executes a query.","properties":{"performance":{"description":"The performance engine tier the execution will be run on. Can be `small`, `medium`, or `large`.","enum":["small","medium","large"],"example":"medium","type":"string","uniqueKey":"pipeline.nodes.items.[INDEX].query_execution.performance","typeLabel":"enum\u003cstring>"},"query_id":{"description":"Unique identifier of the query to execute","example":1234,"type":"integer","uniqueKey":"pipeline.nodes.items.[INDEX].query_execution.query_id","typeLabel":"integer"},"query_parameters":{"description":"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.","type":"object","uniqueKey":"pipeline.nodes.items.[INDEX].query_execution.query_parameters","typeLabel":"object"}},"uniqueKey":"pipeline.nodes.items.[INDEX].query_execution","typeLabel":"object"}},"type":"object","uniqueKey":"pipeline.nodes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"pipeline.nodes","typeLabel":"object[]"}},"uniqueKey":"pipeline","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"pipeline":{"nodes":[{"dependencies":[123],"id":1,"materialized_view_refresh":{"name":"mv_1","performance":"medium"},"query_execution":{"performance":"medium","query_id":1234,"query_parameters":{}}}]}}}},"exampleType":"generated"}},"description":"OK","exampleType":"generated"},"8c70ee7d-5e08-41da-a76a-3c6930169a5e":{"content":{"application/json":{"schema":{"properties":{"error":{"example":"Bad Request","type":"string","uniqueKey":"error","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request"}}},"exampleType":"generated"}},"description":"Bad Request","exampleType":"generated"},"fff6bf47-52d1-4ab1-bede-73bb77c7f56a":{"content":{"application/json":{"schema":{"properties":{"error":{"example":"Invalid API Key","type":"string","uniqueKey":"error","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Invalid API Key"}}},"exampleType":"generated"}},"description":"Unauthorized","exampleType":"generated"},"f33e1e64-d4b9-433f-8a4c-b1ef21341ae4":{"content":{"application/json":{"schema":{"properties":{"error":{"example":"Object not found","type":"string","uniqueKey":"error","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Object not found"}}},"exampleType":"generated"}},"description":"Not Found","exampleType":"generated"},"5637de06-28d3-4925-81e8-42e420727606":{"content":{"application/json":{"schema":{"properties":{"error":{"example":"Internal error","type":"string","uniqueKey":"error","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Internal error"}}},"exampleType":"generated"}},"description":"Internal Server Error","exampleType":"generated"}},"security":{},"servers":{"aecaf754-5ff8-4604-90cb-3dba43f668be":{"url":"https://api.dune.com/api"}}},"originalFileLocation":"analytics-openapi.json"},"subdomain":"dune","siteName":"Dune Docs","title":"Get Query Pipeline - Dune Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-04T13:50:56.764Z","originalFileLocation":"api-reference/queries/endpoint/get-query-pipeline.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dune Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Query Pipeline - Dune Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dune Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dune.mintlify.app/_mintlify/api/og/v2?division=Query+Management\u0026amp;title=Get+Query+Pipeline\u0026amp;description=Builds+a+query+pipeline+from+the+specified+query+and+returns+the+pipeline+definition+containing+all+the+nested+materialized+views+that+the+query+depends+on.+A+p\u0026amp;theme=d9c0cb23e9b44d10ee46351c\u0026amp;signature=e7deedaf7c79279050063b0c613819445847586c421f5adbd067f5df95d13d83\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Query Pipeline - Dune Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dune.mintlify.app/_mintlify/api/og/v2?division=Query+Management\u0026amp;title=Get+Query+Pipeline\u0026amp;description=Builds+a+query+pipeline+from+the+specified+query+and+returns+the+pipeline+definition+containing+all+the+nested+materialized+views+that+the+query+depends+on.+A+p\u0026amp;theme=d9c0cb23e9b44d10ee46351c\u0026amp;signature=e7deedaf7c79279050063b0c613819445847586c421f5adbd067f5df95d13d83\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/dune/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dune Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f0f15\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/queries/endpoint/get-query-pipeline.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dune.com/#organization\",\"name\":\"Dune Docs\",\"url\":\"https://docs.dune.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dune/zh-3B8LgVmyrKOaG/logo/dune-logo-light.svg?fit=max\u0026auto=format\u0026n=zh-3B8LgVmyrKOaG\u0026q=85\u0026s=6fec71d5070d0923eb2924321131b1c2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dune.com#website\",\"name\":\"Dune Docs\",\"url\":\"https://docs.dune.com\",\"publisher\":{\"@id\":\"https://docs.dune.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline#webpage\",\"url\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline\",\"name\":\"Get Query Pipeline\",\"description\":\"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.\",\"dateModified\":\"2026-05-04T13:50:56.764Z\",\"isPartOf\":{\"@id\":\"https://docs.dune.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Query Management\",\"item\":\"https://docs.dune.com/api-reference/queries/endpoint/query-object\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Query Pipeline\",\"item\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline#apireference\",\"headline\":\"Get Query Pipeline\",\"name\":\"Get Query Pipeline\",\"description\":\"Builds a query pipeline from the specified query and returns the pipeline definition containing all the nested materialized views that the query depends on. A pipeline allows you to chain multiple queries together and execute them as a single unit.\",\"url\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dune.com/api-reference/queries/endpoint/get-query-pipeline#webpage\"},\"dateModified\":\"2026-05-04T13:50:56.764Z\",\"publisher\":{\"@id\":\"https://docs.dune.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dune.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dune Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Dune Docs","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"Data Catalog","pages":[{"title":"Data Catalog","href":"/data-catalog/overview"}]},{"tab":"API Reference","pages":[{"group":"Introduction","pages":[{"title":"Overview","icon":"connectdevelop","href":"/api-reference/overview/introduction"},{"title":"Getting Started","icon":"flag-checkered","href":"/api-reference/overview/getting-started"},{"title":"Authentication","icon":"user","href":"/api-reference/overview/authentication"},{"title":"Troubleshooting Errors","icon":"square-question","href":"/api-reference/overview/troubleshooting"}]},{"group":"Quick Start","pages":[{"title":"Analyze Onchain Data","icon":"chart-line","href":"/api-reference/apis/quickstart-analyze"},{"title":"Build Custom Dashboards \u0026 Reports","icon":"desktop","href":"/api-reference/apis/quickstart-dashboards"}]},{"group":"Executions and Results","pages":[{"title":"Overview","icon":"star","href":"/api-reference/executions/execution-object"},{"title":"Execute SQL","openapi":"POST /v1/sql/execute","href":"/api-reference/executions/endpoint/execute-sql"},{"title":"Execute Query","openapi":"POST /v1/query/{query_id}/execute","href":"/api-reference/executions/endpoint/execute-query"},{"title":"Execute Query Pipeline","openapi":"POST /v1/query/{query_id}/pipeline/execute","href":"/api-reference/executions/endpoint/execute-query-pipeline"},{"title":"Get Execution Status","openapi":"GET /v1/execution/{execution_id}/status","href":"/api-reference/executions/endpoint/get-execution-status"},{"title":"Get Execution Result","openapi":"GET /v1/execution/{execution_id}/results","href":"/api-reference/executions/endpoint/get-execution-result"},{"title":"Get Execution Result in CSV","openapi":"GET /v1/execution/{execution_id}/results/csv","href":"/api-reference/executions/endpoint/get-execution-result-csv"},{"title":"Get Latest Query Result","openapi":"GET /v1/query/{query_id}/results","href":"/api-reference/executions/endpoint/get-query-result"},{"title":"Get Latest Query Result in CSV","openapi":"GET /v1/query/{query_id}/results/csv","href":"/api-reference/executions/endpoint/get-query-result-csv"},{"title":"Cancel Execution","openapi":"POST /v1/execution/{execution_id}/cancel","href":"/api-reference/executions/endpoint/cancel-execution"}]},{"group":"Query Management","pages":[{"title":"Overview","icon":"star","href":"/api-reference/queries/endpoint/query-object"},{"title":"List Queries","openapi":"GET /v1/queries","description":"Retrieve a paginated list of queries owned by the account tied to the API key","href":"/api-reference/queries/endpoint/list"},{"title":"Get Query Pipeline","openapi":"GET /v1/query/{query_id}/pipeline","href":"/api-reference/queries/endpoint/get-query-pipeline"},{"title":"Create Query","openapi":"POST /v1/query","description":"This API allows for anyone to create a query.\nThe owner of the query will be under the context of the API key.","href":"/api-reference/queries/endpoint/create"},{"title":"Update Query","openapi":"PATCH /v1/query/{queryId}","href":"/api-reference/queries/endpoint/update"},{"title":"Read Query","openapi":"GET /v1/query/{queryId}","href":"/api-reference/queries/endpoint/read"},{"title":"Archive Query","openapi":"POST /v1/query/{queryId}/archive","href":"/api-reference/queries/endpoint/archive"},{"title":"Unarchive Query","openapi":"POST /v1/query/{queryId}/unarchive","href":"/api-reference/queries/endpoint/unarchive"},{"title":"Private Query","openapi":"POST /v1/query/{queryId}/private","href":"/api-reference/queries/endpoint/private"},{"title":"Unprivate Query","openapi":"POST /v1/query/{queryId}/unprivate","href":"/api-reference/queries/endpoint/unprivate"}]},{"group":"Data Uploads","pages":[{"title":"Overview","icon":"star","href":"/api-reference/tables/endpoint/overview"},{"title":"List Uploaded Tables","openapi":"GET /v1/uploads","href":"/api-reference/tables/endpoint/uploads-list"},{"title":"Create Table","openapi":"POST /v1/uploads","href":"/api-reference/tables/endpoint/uploads-create"},{"title":"Insert Data","openapi":"POST /v1/uploads/{namespace}/{table_name}/insert","href":"/api-reference/tables/endpoint/uploads-insert"},{"title":"Upload CSV","openapi":"POST /v1/uploads/csv","href":"/api-reference/tables/endpoint/uploads-csv"},{"title":"Clear Data","openapi":"POST /v1/uploads/{namespace}/{table_name}/clear","href":"/api-reference/tables/endpoint/uploads-clear"},{"title":"Delete Table","openapi":"DELETE /v1/uploads/{namespace}/{table_name}","href":"/api-reference/tables/endpoint/uploads-delete"},{"title":"Migration Guide","icon":"arrow-right","href":"/api-reference/tables/endpoint/migration"}]},{"group":"Datasets","pages":[{"title":"Overview","icon":"star","href":"/api-reference/datasets/introduction"},{"title":"List Datasets","openapi":"GET /v1/datasets","href":"/api-reference/datasets/endpoint/list"},{"title":"Get Dataset","openapi":"GET /v1/datasets/{slug}","href":"/api-reference/datasets/endpoint/get"},{"title":"Search Datasets","openapi":"POST /v1/datasets/search","href":"/api-reference/datasets/endpoint/search"},{"title":"Search Datasets by Contract Address","openapi":"POST /v1/datasets/search-by-contract","href":"/api-reference/datasets/endpoint/search-by-contract"}]},{"group":"Contract Decoding","pages":[{"title":"Overview","icon":"star","href":"/api-reference/contracts/introduction"},{"title":"Submit Contracts for Decoding","openapi":"POST /v1/contracts/decode","href":"/api-reference/contracts/endpoint/decode"},{"title":"List Contract Submissions","openapi":"GET /v1/contracts/submissions","href":"/api-reference/contracts/endpoint/list"}]},{"group":"Materialized Views","pages":[{"title":"Overview","icon":"star","href":"/api-reference/materialized-views/overview"},{"title":"Get Materialized View","openapi":"GET /v1/materialized-views/{name}","href":"/api-reference/materialized-views/get"},{"title":"Upsert Materialized View","openapi":"POST /v1/materialized-views","href":"/api-reference/materialized-views/create"},{"title":"Delete Materialized View","openapi":"DELETE /v1/materialized-views/{name}","href":"/api-reference/materialized-views/delete"},{"title":"List Materialized Views","openapi":"GET /v1/materialized-views","href":"/api-reference/materialized-views/list"},{"title":"Refresh Materialized View","openapi":"POST /v1/materialized-views/{name}/refresh","href":"/api-reference/materialized-views/refresh"}]},{"group":"Pipelines","pages":[{"title":"Overview","icon":"star","href":"/api-reference/pipelines/overview"},{"title":"Execute Pipeline","openapi":"POST /v1/pipelines/execute","href":"/api-reference/pipelines/endpoint/execute-pipeline"},{"title":"Get Pipeline Execution Status","openapi":"GET /v1/pipelines/executions/{pipeline_execution_id}/status","href":"/api-reference/pipelines/endpoint/get-pipeline-status"}]},{"group":"Account Management","pages":[{"title":"Overview","icon":"star","href":"/api-reference/usage/overview"},{"title":"Get Usage","openapi":"POST /v1/usage","href":"/api-reference/usage/endpoint/get-usage"}]},{"group":"Post-processing","pages":[{"title":"Result Filtering","icon":"filter","href":"/api-reference/executions/filtering"},{"title":"Pagination","icon":"list-ol","href":"/api-reference/executions/pagination"},{"title":"Sorting","icon":"arrow-down-arrow-up","href":"/api-reference/executions/sorting"},{"title":"Sampling","icon":"dice","href":"/api-reference/executions/sampling"}]},{"group":"Webhooks","pages":[{"title":"Create Webhook","icon":"webhook","iconType":"solid","href":"/api-reference/webhooks/webhook"}]},{"group":"Client SDKs","pages":[{"group":"Quickstart","pages":[{"title":"Execution \u0026 Results","href":"/api-reference/quickstart/results-eg"},{"title":"Query Management","href":"/api-reference/quickstart/queries-eg"},{"title":"Tables Management","href":"/api-reference/quickstart/tables-eg"}]},{"title":"Python","icon":"python","href":"/api-reference/sdks/python"},{"title":"TypeScript","icon":"js","href":"/api-reference/sdks/typescript"},{"title":"Go","icon":"golang","href":"/api-reference/sdks/go"}]},{"group":"Resources","pages":[{"title":"Rate Limits","icon":"wave-pulse","href":"/api-reference/overview/rate-limits"},{"title":"Billing","icon":"file-invoice-dollar","href":"/api-reference/overview/billing"},{"title":"FAQ","icon":"message-question","href":"/api-reference/overview/faq"}]}]},{"tab":"SQL Query Engine","pages":[{"title":"SQL Query Engine","href":"/query-engine/overview"}]},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/credits-billing/overview"}]}]},"title":"Get Query Pipeline - Dune Docs","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}