Skip to main content

API key secret

You can enforce additional security by requiring an API key secret for all requests.

In the API key's Settings tab, select Require API Key secret for all requests.

Add the API key secret to requests

curl --user :<YOUR-API-KEY-SECRET> \
https://mainnet.infura.io/v3/<YOUR-API-KEY> \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'