GuidesAPI Reference
DocumentationLog In

Creating an API Key

Creating an API key to authenticate your requests

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.

Creating an API Key

  1. Log into Coinbase Commerce.
  2. Go to Settings > Security.
  3. 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: