About Coinbase
Coinbase is a platform for buying, selling, transferring, and storing cryptocurrency.
Say what should happen in Coinbase, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.
Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.
No credit card needed.
Coinbase is a platform for buying, selling, transferring, and storing cryptocurrency.
Through its API, with the provider’s credentials and permissions.
Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the Coinbase workflow. It then runs on Whenever, with the chat closed.
Set up the Whenever MCP serverPeople automate Coinbase mostly for bookkeeping and monitoring: pulling balances into a net-worth sheet, exporting transactions for tax records, or getting a message when a price crosses a level. The Coinbase App APIs also let you trade and transfer, but those calls move real money, and a mistake in a rule is executed as faithfully as a correct one. Start with reading and add anything that moves funds only with explicit limits.
Coinbase has more than one API, and that confuses first attempts. The Coinbase App API (the v2 endpoints) exposes accounts and the transactions inside each one, typed as buy, sell, send, advanced_trade_fill, earn_payout and more. The Advanced Trade API at api/v3/brokerage has public market-data endpoints and private endpoints for your trading accounts. The v2 buy, sell and spot price endpoints need no authentication at all. For your own account, Coinbase says to use a Secret API key created in the Coinbase Developer Platform; other people's accounts require OAuth instead. Each request carries a JWT signed with the key's private key using ES256, which expires after two minutes and must be generated fresh for every request, so a workflow stores the key name and private key as secrets rather than a static token. Coinbase App APIs do not support Ed25519 keys; create the key with ECDSA.
When creating the key, Coinbase lets you set portfolio and permission restrictions and an IP allowlist, which it recommends. A reporting job should use a key restricted to what it reads, and anything that trades or transfers belongs on a separate key. Transaction lists are paginated per account with a next_uri, so a tax export must follow pages to the end and record the newest transaction ID it saw so the next run picks up only new activity.
Values need care. Each transaction has an amount in the asset and a native_amount in your native currency, and both are negative for debits such as sells and sends. Keep both rather than recomputing fiat values later. Coinbase notes that its quoted buy and sell prices are only correct for seconds, so price alerts are informational, not execution triggers. A scheduled price check also starts a run on every interval even when nothing has moved.
Starter briefs to set up with your accounts, not finished workflows.
Read-only key, one row per account per day.
Incremental export that remembers where the previous run stopped.
Uses the unauthenticated spot price endpoint, with a cooldown so one crossing does not repeat all day.
Balances and transaction history come from the Coinbase App API v2 accounts and transactions endpoints. Trading accounts and market data are in the Advanced Trade API. The v2 price endpoints need no key.
A Secret API key from the Coinbase Developer Platform, created with the ECDSA algorithm, signs a JWT for each request. Each JWT expires after two minutes and covers one request.
Set portfolio and permission restrictions when you create it so it only covers what the workflow reads, and add an IP allowlist, which Coinbase recommends. Keep keys that can trade or transfer separate.
Transaction lists are paginated per account. Follow next_uri until it is null, and repeat for every account, including ones with zero balance today.
It executes exactly what the rule says, including mistakes. Use maximum order sizes, a separate key, and test with small amounts. Coinbase notes that quoted prices are only correct for seconds.
One workflow free. No card. Weekly AI-building limits.