---
title: "Generate a Coinbase offramp URL for bank cashout"
method: GET
path: "/v1/offramp/url"
tags: ["offramp"]
---

# Generate a Coinbase offramp URL for bank cashout

`GET /v1/offramp/url`

Generate a Coinbase hosted offramp URL to sell crypto and withdraw to a bank account.

**How it works:**
1. Creates a session token bound to user's Smart Account earnings wallet
2. Returns URL with session token embedded
3. User completes sale in Coinbase UI
4. Fiat is sent to user's linked bank account

**Response:** Returns `offramp_url` to redirect the user.

## Query parameters

- `network` string — Source blockchain network (e.g., base, base-sepolia).
- `token` string — Token to sell (e.g., USDC).
- `amount` string, nullable — Amount to sell in token units (e.g., '1.00' for 1 USDC). Pre-fills the Coinbase UI and records on the withdrawal event.

## Headers

- `authorization` string, nullable — Bearer JWT issued by Grove.

## Response `200`

Successful Response

- OfframpUrlResponse — Response model for Coinbase Offramp URL generation (Session Token flow). The session token embedded in the URL binds the user's external wallet address, ensuring sold crypto is sourced from the correct wallet.
  - `offramp_url` string, required — Coinbase hosted offramp URL. Redirect user here to complete sale. Contains session token bound to user's external wallet address.

## Other responses

- `400` — Missing Smart Account earnings wallet or invalid network
- `401` — Missing or invalid JWT
- `422` — Validation Error

---

[API](https://skmtc.net/grove/apis/grove-api.md) · [All operations](https://skmtc.net/grove/apis/grove-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/grove/grove-api/revisions/f286b48a8105/schema)
