Step 1: Sign up for a CDP account
If you already have a Coinbase account, you can just Sign in.Step 2: Verify your email
Enter your email address and verify with a code sent to you immediately after signup. Set up 2-factor authentication (2FA) with your phone number.Step 3: Get your Project ID
A default project name displays (you can rename this). Copy your Project ID to use later (this is referred to asappId
).

Step 4: Create a Secret API Key
Navigate to the API Keys tab. Create your API key by entering an API key nickname (restrictions are optional).
Optional API Key File DownloadFor enhanced security, API key files are no longer automatically downloaded. If you need to reference your API key via file path in your code, click the Download API key button in the modal to save the key file. Otherwise, you can copy the key details directly from the modal and use them as environment variables (recommended for better security).
Install CDP CLI tools
Installcdpcurl
to make test API calls. cdpcurl
allows you to make authenticated HTTP requests to the Coinbase API with your API key.
Ensure you install the latest version of
cdpcurl
to support Ed25519 keys (the default for new CDP API keys).Integrate Coinbase Onramp and Offramp into your product
Coinbase’s fiat-to-crypto (Onramp) and crypto-to-fiat (Offramp) APIs and SDKs offer a lightweight way for Apps to generate URLs to Coinbase’s hosted widgets. Apply for access to Coinbase Onramp and Offramp here. Developers can use the REST API to interact with Coinbase Onramp and Offramp. In addition, we recommend generating a One-click-buy URL via API for most developers!See Also: