Queries
Create Query
This API allows for anyone to create a query. The owner of the query will be under the context of the API key.
POST
/
v1
/
query
To access Query endpoints, a Plus plan or higher is required.
Headers
X-Dune-Api-Key
string
requiredAPI Key for the service
Query Parameters
api_key
string
API Key, alternative to using the HTTP header X-Dune-Api-Key
Body
*/*
name
string
requiredThe name of the createc query.
query_sql
string
requiredThe SQL of the query.
description
string
The description of the created query.
is_private
boolean
Indicates if the query is private, meaning that only the team or, in case of personal queries, the user that created it can see it.
parameters
object[]
The parameters that the SQL query accepts.
tags
string[]
The tags of the query.
Response
200 - application/json
query_id
integer
The Unique ID of the created query
Was this page helpful?