Shared APIs
These APIs are used by both Onramp and Offramp.Session Token API
Create secure, single-use session tokens for both Onramp and Offramp. Endpoint:POST https://api.developer.coinbase.com/onramp/v1/token
Request Parameters
Address Object
Response
Example
Transaction Status API
Track Onramp and Offramp transactions in real-time. Onramp Transactions:GET https://api.developer.coinbase.com/onramp/v1/buy/user/{partnerUserRef}/transactions
Offramp Transactions:GET https://api.developer.coinbase.com/onramp/v1/sell/user/{partnerUserRef}/transactions
Query Parameters
See Transaction Status for detailed response schemas.
Rate Limits
Buy Quote API and Sell Quote API are rate limited to 10 requests per second per app ID. Rate limit exceeded responses return HTTP 429 withrate_limit_exceeded error.
Onramp
Reference documentation specific to Onramp (buying crypto with fiat).Onramp URL Parameters
Format:https://pay.coinbase.com/buy/select-asset?sessionToken=<token>
Example
Buy Quote API
Get a quote for purchasing crypto with fiat. Endpoint:POST https://api.developer.coinbase.com/onramp/v1/buy/quote
Request Parameters
Payment Methods
CARD, ACH_BANK_ACCOUNT, APPLE_PAY, FIAT_WALLET, CRYPTO_ACCOUNT, GUEST_CHECKOUT_CARD, PAYPAL, RTP, GUEST_CHECKOUT_APPLE_PAY, GUEST_CHECKOUT_GOOGLE_PAY
Buy Config & Options
Get supported countries, currencies, and assets for Onramp.- Buy Config:
GET https://api.developer.coinbase.com/onramp/v1/buy/config - Buy Options:
GET https://api.developer.coinbase.com/onramp/v1/buy/options?country=<code>&subdivision=<code>
Offramp
Reference documentation specific to Offramp (selling crypto for fiat).Offramp URL Parameters
Format:https://pay.coinbase.com/v3/sell/input?sessionToken=<token>&partnerUserRef=<id>&redirectUrl=<url>
Example
Production
redirectUrl values must be added to your domain allowlist. See Security Requirements.Sell Quote API
Get a quote for selling crypto to fiat. Endpoint:POST https://api.developer.coinbase.com/onramp/v1/sell/quote
Request Parameters
Sell Config & Options
Get supported countries, currencies, and assets for Offramp.- Sell Config:
GET https://api.developer.coinbase.com/onramp/v1/sell/config - Sell Options:
GET https://api.developer.coinbase.com/onramp/v1/sell/options?country=<code>&subdivision=<code>
What to read next
- Quickstart: Get started with Onramp and Offramp
- Security Requirements: Implement CORS and authentication
- API Reference (OpenAPI): Full OpenAPI specification