> ## Documentation Index
> Fetch the complete documentation index at: https://v3.docs.derive.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Withdraw an asset from a subaccount to L1

> Submits a signed request to withdraw a spot asset out of a subaccount. You provide the subaccount id, asset name, amount in underlying units, a nonce, the signer, an EIP-712 signature with its expiry, and the maximum sequencer fee (in USD) you authorise; setting force_batch controls whether the withdrawal is batched. Requires a session key with withdraw permission, and returns the accepted operation id and its uuid for tracking.



## OpenAPI

````yaml /openapi.json post /private/withdraw
openapi: 3.1.0
info:
  title: Derive v3 API
  version: 0.2.0
  description: JSON-RPC 2.0 methods, served over WebSocket and HTTP POST.
servers:
  - url: https://api.derive.xyz/v3
    description: Production (HTTP POST base)
  - url: https://testnet.api.derive.xyz/v3
    description: Testnet (HTTP POST base)
security: []
tags:
  - name: Subaccounts
    description: >-
      List, inspect, and label subaccounts, portfolios, positions, and
      collateral.
  - name: Session Keys
    description: Register, edit, and list delegated signing keys.
  - name: Account
    description: Wallet-level account information and settings.
  - name: Orderbook
    description: Place, replace, cancel, and query orders, trigger orders, and algos.
  - name: RFQ
    description: 'Request-for-quote: send RFQs, quote, and execute block trades.'
  - name: Vault Shareholders
    description: >-
      Deposit into and withdraw from vaults, and track shares, requests, and
      performance.
  - name: Vault Curators
    description: >-
      Create and operate curated vaults: settle deposit and withdrawal requests,
      and manage vault metadata.
  - name: History
    description: >-
      Per-account historical records: orders, trades, transfers, and
      settlements.
  - name: Market Maker Protection
    description: Configure, read, and reset market-maker protection.
  - name: Transfers & Withdrawals
    description: Move collateral between subaccounts, to other wallets, and on-chain.
  - name: System
    description: Rate limits and transaction lookups.
  - name: Market Data
    description: Instruments, currencies, tickers, and market-wide feeds.
  - name: Referrals
    description: Referral codes and program performance.
  - name: Other
    description: Uncategorized.
paths:
  /private/withdraw:
    post:
      tags:
        - Transfers & Withdrawals
      summary: Withdraw an asset from a subaccount to L1
      description: >-
        Submits a signed request to withdraw a spot asset out of a subaccount.
        You provide the subaccount id, asset name, amount in underlying units, a
        nonce, the signer, an EIP-712 signature with its expiry, and the maximum
        sequencer fee (in USD) you authorise; setting force_batch controls
        whether the withdrawal is batched. Requires a session key with withdraw
        permission, and returns the accepted operation id and its uuid for
        tracking.
      operationId: private_withdraw
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrivateWithdrawRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrivateWithdrawResponse'
        default:
          description: JSON-RPC error (see Error Codes)
components:
  schemas:
    PrivateWithdrawRequest:
      type: object
      required:
        - amount_in_underlying
        - asset_name
        - force_batch
        - max_fee_usd
        - nonce
        - signature
        - signature_expiry_sec
        - signer
        - subaccount_id
      properties:
        amount_in_underlying:
          type: string
        asset_name:
          type: string
        force_batch:
          type: boolean
        max_fee_usd:
          description: >-
            Maximum sequencer fee the signer authorises, in USD, as a decimal
            string (e.g. `"1.5"`) or a JSON number.
          type: string
          format: decimal
        nonce:
          type: integer
          format: int64
        signature:
          type: string
        signature_expiry_sec:
          type: integer
          format: uint64
          minimum: 0
        signer:
          type: string
        subaccount_id:
          type: integer
          format: uint64
          minimum: 0
    PrivateWithdrawResponse:
      type: object
      required:
        - op_uuid
        - operation_id
      properties:
        op_uuid:
          type: string
        operation_id:
          type: integer
          format: uint64
          minimum: 0

````

## Related topics

- [Transfers & Withdrawals](/trading/transfers-withdrawals.md)
- [Get withdrawal history for a subaccount](/api-reference/history/get-withdrawal-history-for-a-subaccount.md)
- [Transfer a spot asset between your subaccounts](/api-reference/transfers-&-withdrawals/transfer-a-spot-asset-between-your-subaccounts.md)
