Creating a Commerce API Key
Most Commerce API requests must be authenticated with an API key. You can create an API key in your Settings page after creating a Coinbase Commerce account.
Create an API Key
- Log into Coinbase Commerce.
- Go to Settings > Security.
- Click New API key.
Authenticating
Authenticated API requests should be made with a X-CC-Api-Key
header. Your secret API key should be passed as the value.
If authentication fails, a JSON object with an error message is returned with HTTP status 401
.
Example authenticated request:
curl https://api.commerce.coinbase.com/checkouts \
-H "X-CC-Api-Key: <Your API Key>"
See Also: