1
Get API credentials
Before you can make any API calls, you need an API key and private key from Coinbase.
- Sign in to your Coinbase account.
- Go to Settings → API → Create API Key.
- Give the key a name, select the View scope (sufficient for this quickstart), and click Create.
- Copy your API key name and download your private key (PEM file). Store them somewhere safe — you will not be able to retrieve the private key again.
2
Install the SDK or use curl
You can interact with the API using the official Coinbase SDK or plain HTTP with
curl. Choose the option that fits your workflow.3
Fetch your accounts
Send a A successful response returns an array of account objects. Here is an example with two accounts:Each account includes a
GET request to /api/v3/brokerage/accounts to retrieve all brokerage accounts linked to your Coinbase profile, along with their available balances.uuid (used in other API calls), a human-readable name, the currency it holds, and an available_balance showing funds not currently locked in open orders.4
List available products
Send a The response includes each product’s ID, current status, quote and base currencies, and precision rules for order sizing:Use
GET request to /api/v3/brokerage/products to retrieve the full catalog of tradable markets. You can filter by product_type or contract_expiry_type using query parameters.product_id values (such as "BTC-USD") when placing orders or subscribing to market data channels.5
Next steps
You have successfully authenticated, fetched your account balances, and explored the product catalog. You are ready to go deeper.
Place an Order
Learn how to place market and limit orders, handle order confirmation responses, and track order status.
API Reference
Explore the complete endpoint reference for accounts, orders, products, portfolios, and more.