---
title: "Withdraw from a vault with an EVM Smart Account"
method: POST
path: "/v2/evm/smart-accounts/{address}/lend/withdraw"
tags: ["Lend"]
---

# Withdraw from a vault with an EVM Smart Account

`POST /v2/evm/smart-accounts/{address}/lend/withdraw`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/evm/smart-accounts/{address}/lend/withdraw`
- Auth: HTTP bearer

Withdraws the vault's underlying asset (e.g. USDC) from an EVM Smart Account's position in a vault. The Smart Account's owner must be a CDP EVM account. The share approval and withdrawal are batched into a single user operation, whose hash is returned in `userOpHash`.
The withdrawal reverts if the vault's share price moves beyond `maxSlippageBps` before the user operation is included onchain.
Poll `getUserOperation` until the user operation reaches a terminal status.
For withdrawals from EVM accounts, use `withdrawFromVaultWithEvmAccount` instead.
Provide either `amount` or `withdrawAll: true`. The `amount` field accepts human-readable amounts as decimal strings (e.g., "1.5", "25.50") in the standard unit denomination of the vault's underlying asset. Set `withdrawAll` to `true` to withdraw the entire position: every vault share held by the account is redeemed, so no residual shares remain from interest that accrues before execution.

## Path parameters

- `address` string, required

## Headers

- `X-Wallet-Auth` string, required
- `X-Idempotency-Key` string

## Request body

- WithdrawFromVaultWithEvmSmartAccountRequest
  - [`WithdrawFromVaultBaseRequest`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FWithdrawFromVaultBaseRequest)
  - object: A request to withdraw the vault's underlying asset (e.g. USDC) from a vault position held by an EVM Smart Account. The share approval and withdrawal are batched into a single user operation.
    - `useCdpPaymaster` boolean: Whether to use CDP Paymaster to sponsor gas fees. When true, the user operation gas will be paid by the Paymaster, allowing the account to withdraw without holding native gas tokens. Cannot be used together with `paymasterUrl`.
    - `paymasterUrl` string, uri: Optional custom Paymaster URL to use for gas sponsorship. This allows you to use your own Paymaster service instead of CDP's Paymaster. Cannot be used together with `useCdpPaymaster`.
    - `paymasterContext` PaymasterContext: The ERC-7677 `context` object forwarded to the paymaster service as part of the `paymasterService` capability. The fields in this object are defined by the paymaster service provider; CDP forwards them to the paymaster unchanged. This field is only valid when a paymaster is configured for the request. Providing `paymasterContext` without a paymaster configured results in an `invalid_request` error.

## Response `200`

Successfully broadcast the withdrawal user operation. Poll `getUserOperation` for its status.

- SmartAccountVaultWithdrawResponse: The result of a vault withdrawal from an EVM Smart Account after broadcast.
  - `userOpHash` string, required: The hash of the user operation executing the withdrawal, as a 0x-prefixed hex string.

## Other responses

- `400`: Invalid request.
- `401`: Unauthorized.
- `402`: A payment method is required to complete this operation.
- `403`: User forbidden from performing the action.
- `404`: Not found.
- `409`: Conflict. A withdrawal or another lend operation for this account and vault is already in progress.
- `422`: Idempotency key conflict.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 10 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `401`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `402`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `403`
  - …6 more
- **2026-11-10** `cb7be3d96142`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/evm/smart-accounts/:address/lend/withdraw/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
