To access Query endpoints, an Analyst plan or higher is required.
Headers
API Key for the service
Query Parameters
API Key, alternative to using the HTTP header X-Dune-Api-Key
Body
*/*
CreateQueryRequest
The name of the createc query.
The SQL of the query.
The description of the created query.
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.
Example:
true
The parameters that the SQL query accepts.
The tags of the query.
Response
OK
The Unique ID of the created query
Example:
1