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.
Documentation Index
Fetch the complete documentation index at: https://docs.dune.com/llms.txt
Use this file to discover all available pages before exploring further.
Read/WriteHeaders
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 created 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.
true
Indicates if the query is temporary (unsaved). Temporary queries can be executed but won't appear in the library.
false
The parameters that the SQL query accepts.
The tags of the query.
Response
OK
The Unique ID of the created query
1