Dashboard API keys authenticate requests to the DIA Indexer API. They are not used with the dashboard’s internal
/api/oracle/* routes.Base URL
X-Api-Key header:
Generate and store a key
- Open Oracle Dashboard → Settings → API Key.
- Select Generate API key.
- Copy the key immediately. It is displayed only once.
- Store it in your deployment’s secret manager.
.env file that is committed to Git.
Make your first request
List the oracles available to the authenticated organization.network_name, address, and oracle_id needed by the other endpoints.
Endpoint reference
Path conventions
- Use the exact blockchain name returned as
network_name, such asEthereum,Base, orArbitrum. - EVM addresses should be EIP-55 checksum compliant.
- Use the feed identifier returned by the oracle-detail endpoint.
- Write slash-based pairs in API-safe dash notation:
ETH/USDbecomesETH-USDin a URL path. - Typed feed identifiers retain their notation, for example
denominator:wBTCorfairValue:wBTC. - Do not double-encode feed identifiers. For example, do not send
ETH%252FUSD.
Get oracle details
heartbeat is expressed in milliseconds. price_deviation is a fraction: 0.002 means 0.2%.Get feed details
For a slash-based pair, use dash notation in the URL:Get historical updates
end_time must be later than start_time.
Example response:
Get gas-cost history
Example response:
Get transactions
Example response:
next back unchanged to retrieve the following page:
Errors
Errors are returned with an HTTP status and a JSON body. Authentication errors use anerror field:
errorcode and errormessage:
Log the HTTP status, request path, and response body when diagnosing an error, but never log the
X-Api-Key header.
Revoke or rotate a key
Revoke keys from Oracle Dashboard → Settings → API Key. Revocation applies to subsequent API requests. If key generation reports that the maximum number of keys has been reached, revoke an existing key before requesting another one. For rotation without downtime:- Generate and securely store the replacement key.
- Update every server or secret store that uses the old key.
- Confirm requests succeed with the replacement key.
- Revoke the old key.