The Dune API relies on API keys for authentication. Your API key grants access and determines billing details for private queries, so safeguard it diligently!
In order to generate a new API key, go to settings -> API -> create new API key.
user
account and team
account. A team can have many users. A user can join many teams.Never share your secret API keys in public repositories or other accessible areas.
When creating an API key, you can now choose between two permission levels to control which endpoints the key can access:
You can select the appropriate level of access when creating a new API key in the settings under API -> Create API key.
As mentioned above, a team API key only has access to team account resources and not user account resources. This can be especially relevant when you use Query endpoints.
You can authenticate either with the API header or with query parameter to start making API calls. We illustrate below with execute query endpoint as an example.
To authenticate via the API header, include an x-dune-api-key
property in your request header.
To authenticate via the API header, include an x-dune-api-key
property in your request header.
Alternatively, use an api_key
query parameter for authentication.
The Dune API relies on API keys for authentication. Your API key grants access and determines billing details for private queries, so safeguard it diligently!
In order to generate a new API key, go to settings -> API -> create new API key.
user
account and team
account. A team can have many users. A user can join many teams.Never share your secret API keys in public repositories or other accessible areas.
When creating an API key, you can now choose between two permission levels to control which endpoints the key can access:
You can select the appropriate level of access when creating a new API key in the settings under API -> Create API key.
As mentioned above, a team API key only has access to team account resources and not user account resources. This can be especially relevant when you use Query endpoints.
You can authenticate either with the API header or with query parameter to start making API calls. We illustrate below with execute query endpoint as an example.
To authenticate via the API header, include an x-dune-api-key
property in your request header.
To authenticate via the API header, include an x-dune-api-key
property in your request header.
Alternatively, use an api_key
query parameter for authentication.