To use most API endpoints, you’ll need to generate an API key. Here’s how to do that if you have a Coinbase.com account:
Sign in to your account and access the profile menu from your account dashboard.
Choose Settings from the drop-down menu.
Select the API tab. You can add a new API key by selecting + New API Key.
You’ll need to complete 2-step verification using your registered mobile number. Input the correct code and select Verify.
Set your API key settings by authorizing Accounts and API v2 permissions.
If applicable, also update the Notification URL and the Allowed IP addresses as needed.
Review the given permissions and then select create.
Your API key and API secret will be generated. Store these details.