To use most API endpoints, you’ll need to generate an API key. Here’s how to do that if you have a Coinbase Commerce account:
Sign in to your account and access your Settings by selecting the profile menu in your account and choosing 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.