Payouts
Send payments directly to users’ Coinbase accounts—payroll, creator payments, rewards
Pay with Coinbase
Let users pay with their Coinbase balance or connected payment methods
Trading
Enable users to trade crypto from within your application
How it works
| Endpoint | Purpose |
|---|---|
login.coinbase.com/oauth2/auth | User authorization |
login.coinbase.com/oauth2/token | Token exchange & refresh |
login.coinbase.com/oauth2/revoke | Disconnect user (optional) |
Full integration guide
Step-by-step implementation with code examples
Security best practices
PKCE, state validation, and secure token storage
Before you integrate
Implement PKCE for security. We strongly recommend implementing PKCE (Proof Key for Code Exchange) in your OAuth2 flow, especially for mobile and single-page applications.
When to use OAuth2
| I want to… | Use |
|---|---|
| Access other users’ Coinbase accounts | OAuth2 (this guide) |
| Access my own CDP resources (server wallets, etc.) | CDP API Keys |
| Access my own Coinbase account | Coinbase App API Keys |
| Use a legacy OAuth 1.0 integration | OAuth2 — OAuth 1.0 endpoints are deprecated |
OAuth2 is specifically for third-party applications that need to access Coinbase consumer accounts on behalf of users. If you’re building server-side automation for your own account, use API keys instead.
Use cases
Payouts to Coinbase users
Send payments directly to users’ Coinbase accounts—payroll, creator payments, rewards. Required scopes:wallet:accounts:read, wallet:transactions:send
Pay with Coinbase
Let users pay for goods and services using their Coinbase balance. Required scopes:wallet:accounts:read, wallet:transactions:send
Trading integration
Allow users to trade crypto directly from your platform using their Coinbase account. Required scopes:wallet:accounts:read, wallet:trades:create, wallet:trades:read