Coinbase Onramp API

The v2 Onramp APIs are an evolution of our [v1 APIs](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/), designed to make the fiat-to-crypto experience feel native to your applications for higher conversion and less friction. These APIs only cover a subset of Coinbase Onramp functionality as described below, for all other use cases please refer to our [v1 APIs](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/). ## Supported Use Cases #### Guest Checkout Onramp (Apple Pay & Google Pay) This use case allows you to offer an Apple Pay or Google Pay onramp experience with debit cards in your app without users needing to create or log into a Coinbase account. Our API returns a `paymentLink` URL that renders an Apple Pay or Google Pay button for you to load in a webview or iframe in your app, making the onramp experience feel native to your application. Refer to our [detailed integration guide](https://docs.cdp.coinbase.com/onramp/headless-onramp/overview) for more information on the limitations and requirements of this use case. See our [onramp mobile demo app](https://github.com/coinbase/onramp-demo-mobile) for a reference implementation. #### Hosted UI Onramp This use case enables you to offer a full-featured onramp experience by redirecting users to a Coinbase-hosted page where they can choose to log into their existing Coinbase account or proceed as a guest. The Onramp Session API generates secure, single-use Onramp URLs with customizable parameters, allowing you to control available payment methods, preset transaction amounts, and cryptocurrencies for a tailored user experience. Refer to our [guide](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/generating-onramp-url) for implementation details and customization options for this use case.

GitHub OpenAPI
Business capability
Blockchain & Digital Assets AE-240

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/onramp/verifications Send an OTP to verify a user · Initiate onramp verification #
Ask an LLM
“How do I send a phone or email code to verify a user before onramping?”
“Can I choose whether the OTP goes by SMS or email?”
Tell an agent
Send a {channel} code to {destination}.
Start onramp verification for {destination} via {channel}.
POST /v2/onramp/verifications/{verificationId}/submit Submit an OTP to complete verification · Submit onramp verification #
Ask an LLM
“How do I confirm the code a user received for onramp verification?”
“How long is the verification code valid before I submit it?”
Tell an agent
Submit OTP {otpCode} for verification {verificationId}.
Complete onramp verification {verificationId} with code {otpCode}.
POST /v2/onramp/orders Create an onramp order or get a quote · Create an onramp order #
Ask an LLM
“How do I buy crypto through onramp with a payment method and amount?”
“Can I get a quote for an onramp order without creating a transaction?”
Tell an agent
Create an onramp order for {partnerUserRef} to buy {purchaseAmount} {purchaseCurrency} on {destinationNetwork} to {destinationAddress}.
Get a quote for {partnerUserRef} buying {paymentAmount} {paymentCurrency} into {purchaseCurrency} on {destinationNetwork} at {destinationAddress}.
GET /v2/onramp/orders/{orderId} Get an onramp order · Get an onramp order by ID #
Ask an LLM
“What is the status of a specific onramp order?”
“Can I look up one onramp order by its ID?”
Tell an agent
Get onramp order {orderId}.
Show the status of onramp order {orderId}.
POST /v2/onramp/sessions Create a single-use onramp session URL · Create an onramp session #
Ask an LLM
“How do I generate a one-time link for a user to buy crypto?”
“Can I pre-fill the purchase amount on an onramp session URL?”
Tell an agent
Create an onramp session for {partnerUserRef} to buy {purchaseAmount} {purchaseCurrency} on {destinationNetwork} to {destinationAddress}.
Generate a single-use onramp URL for {partnerUserRef} buying {paymentAmount} {paymentCurrency} into {purchaseCurrency} on {destinationNetwork} at {destinationAddress}.
POST /v2/onramp/limits Get a user's onramp limits · Get onramp user limits #
Ask an LLM
“What is the maximum I can buy with a given payment method?”
“How do I check a user's remaining onramp capacity?”
Tell an agent
Get onramp limits for {userId} using {paymentMethodType} as {userIdType}.
Show how much {userId} can still spend with {paymentMethodType} ({userIdType}).
POST /v2/onramp/limits/upgrade Request a higher onramp limit · Request limit upgrade #
Ask an LLM
“How do I ask an onramp user to verify identity for a higher limit?”
“Can I send the user to a hosted page instead of submitting data?”
Tell an agent
Request a limit upgrade for {userIdType} {userId}.
Submit an identity verification request for {userIdType} {userId} in {interactionMode} mode.

Documentation

Specifications

Schemas & Data

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/coinbase:coinbase-onramp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coinbase-onramp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coinbase Developer Platform Onramp API
  description: The Coinbase Developer Platform APIs - leading the world's transition onchain.
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 2.0.0
  contact:
    name: Coinbase Developer Platform
    email: cdp@coinbase.com
    url: https://cdp.coinbase.com
servers:
- url: https://api.cdp.coinbase.com/platform
  description: The production server of the CDP APIs.
security:
- apiKeyAuth: []
tags:


# --- truncated at 32 KB (137 KB total) ---
# Full source: https://artifacts.apis.io/coinbase/openapi/coinbase-onramp-api-openapi.yml