Skip to content
Integration

Coinbase integrations and automation

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 on Whenever

About Coinbase

Coinbase is a platform for buying, selling, transferring, and storing cryptocurrency.

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

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 server

Plan your Coinbase workflow

People 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.

Coinbase workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Daily balances into a net-worth sheet

Read-only key, one row per account per day.

Build this workflow

Monthly transaction export for taxes

Incremental export that remembers where the previous run stopped.

Build this workflow

Price threshold alert

Uses the unauthenticated spot price endpoint, with a cooldown so one crossing does not repeat all day.

Build this workflow

Related apps for your workflows

All integrations

Coinbase FAQs

Which Coinbase API should I use for balances versus trading?

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.

How do Coinbase API keys authenticate?

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.

How should I restrict a Coinbase API key used for reporting?

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.

Why does my exported Coinbase history stop early?

Transaction lists are paginated per account. Follow next_uri until it is null, and repeat for every account, including ones with zero balance today.

Is automated trading on Coinbase safe to set up?

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.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.