To create an API and secret key, login to coinbase website and follow the below steps:
1. Select the [Profile] Menu at the top-right corner of the Exchange dashboard.
2. Select [API] from the menu.
3. Under Profile Information, select the [API Settings] tab, then select [+ New API Key]
4. Select your profile and appropriate permissions, create a passphrase, and then enter in your 2-step verification code.
5. Finally, select [Create API Key] at the bottom to make a unique key.
The new API key and secret will be displayed on the API Settings page.
Note: the API secret will only be shown once, so remember to record your secret in a secure location. If you lose your API secret, we will not be able to retrieve it.