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

# Initiate offramp

> Triggers the offramp flow and gets the on-chain address to send funds to



## OpenAPI

````yaml post /v1/users/{user_id}/fiat/offramp
openapi: 3.1.0
info:
  version: 0.0.1
  title: Privy API
  description: >-
    REST API for Privy's wallet infrastructure — provision and manage wallets
    across EVM, Solana, and Bitcoin, authenticate users, sign transactions, and
    configure programmable policies and authorization intents.
  contact:
    name: Privy
    url: https://www.privy.io/
    email: support@privy.io
servers:
  - url: https://api.privy.io
security: []
tags:
  - name: Accounts
    description: Operations related to asset accounts
  - name: Aggregations
    description: Operations related to aggregations for tracking and measuring metrics
  - name: Apps
    description: Operations related to app settings and allowlist management
  - name: Client Auth
    description: OAuth token exchange and device authorization operations
  - name: Condition Sets
    description: Operations related to condition sets
  - name: Embedded wallets
    description: Operations related to embedded wallet creation and authentication
  - name: Fiat
    description: Operations related to fiat onramping and offramping
  - name: Intents
    description: Operations related to authorization intents for wallet actions
  - name: Key quorums
    description: Operations related to key quorums
  - name: Kraken Embed
    description: >-
      Operations for Kraken Embed integration, including quotes, trades, user
      management, and portfolio operations
  - name: OAuth
    description: >-
      OAuth 2.0 endpoints including Device Authorization Grant (RFC 8628) for
      CLI and limited-input device login flows
  - name: Organizations
    description: Operations related to organization secret management
  - name: Policies
    description: Operations related to policies
  - name: Shared
    description: Common schemas shared across resources
  - name: Swaps
    description: Operations for swapping tokens within wallets
  - name: Transactions
    description: Operations related to transactions
  - name: User signers
    description: Operations related to user signers
  - name: Users
    description: Operations related to users
  - name: Wallet Actions
    description: Operations related to wallet actions
  - name: Wallets
    description: Operations related to wallets
  - name: Webhooks
    description: >-
      Webhook events that Privy sends to your configured endpoint when specific
      actions occur in your app
  - name: Yield
    description: >-
      Operations for depositing and withdrawing funds from ERC-4626 yield vaults
      (Morpho, Aave)
paths:
  /v1/users/{user_id}/fiat/offramp:
    post:
      tags:
        - Fiat
      summary: Initiate an offramp transaction
      description: Triggers the offramp flow and gets the on-chain address to send funds to
      operationId: initiateFiatOfframp
      parameters:
        - schema:
            type: string
            description: The ID of the user initiating the offramp
          required: true
          name: user_id
          in: path
        - schema:
            type: string
            description: ID of your Privy app.
          required: true
          name: privy-app-id
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: string
                  minLength: 1
                provider:
                  $ref: '#/components/schemas/OnrampProvider'
                source:
                  type: object
                  properties:
                    currency:
                      $ref: '#/components/schemas/OnrampAsset'
                    chain:
                      $ref: '#/components/schemas/OnrampChain'
                    from_address:
                      type: string
                  required:
                    - currency
                    - chain
                    - from_address
                destination:
                  type: object
                  properties:
                    currency:
                      $ref: '#/components/schemas/FiatCurrency'
                    payment_rail:
                      $ref: '#/components/schemas/FiatPaymentRail'
                    external_account_id:
                      type: string
                      format: uuid
                  required:
                    - currency
                    - payment_rail
                    - external_account_id
              required:
                - amount
                - provider
                - source
                - destination
              example:
                provider: bridge-sandbox
                amount: '100.00'
                source:
                  currency: usdc
                  chain: base
                  from_address: '0xc24272abc794b973b896715db40a72714a030323'
                destination:
                  currency: usd
                  payment_rail: ach_push
                  external_account_id: a068d2dd-743a-4011-9b62-8ad33cc7a7be
      responses:
        '200':
          description: Deposit instructions for the offramp
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/OfframpResponse'
                  - example:
                      id: d220bcf7-4ad5-4687-8a61-e51c5875225e
                      status: awaiting_funds
                      deposit_instructions:
                        amount: '100.0'
                        currency: usdc
                        to_address: 0xdeadbeef2usdcbase
                        from_address: '0xc24272abc794b973b896715db40a72714a030323'
                        chain: base
      security:
        - appSecretAuth: []
components:
  schemas:
    OnrampProvider:
      type: string
      enum:
        - bridge
        - bridge-sandbox
      description: Valid set of onramp providers
      title: OnrampProvider
      example: bridge
      x-stainless-model: client_auth.onramp_provider
    OnrampAsset:
      type: string
      enum:
        - usdc
      description: Supported crypto assets for onramp and offramp.
      title: OnrampAsset
      x-stainless-model: fiat.onramp_asset
    OnrampChain:
      type: string
      enum:
        - ethereum
        - base
        - arbitrum
        - polygon
        - optimism
      description: Supported blockchain chains for onramp and offramp.
      title: OnrampChain
      x-stainless-model: fiat.onramp_chain
    FiatCurrency:
      type: string
      enum:
        - usd
        - eur
      description: Supported fiat currencies.
      title: FiatCurrency
      x-stainless-model: fiat.fiat_currency
    FiatPaymentRail:
      type: string
      enum:
        - sepa
        - ach_push
        - wire
      description: Supported fiat payment rails.
      title: FiatPaymentRail
      x-stainless-model: fiat.fiat_payment_rail
    OfframpResponse:
      type: object
      properties:
        id:
          type: string
        status:
          $ref: '#/components/schemas/OnrampTransferStatus'
        deposit_instructions:
          $ref: '#/components/schemas/OfframpDepositInstructions'
      required:
        - id
        - status
        - deposit_instructions
      description: Response for an offramp transfer initiation.
      title: OfframpResponse
      x-stainless-model: fiat.offramp_response
    OnrampTransferStatus:
      type: string
      enum:
        - awaiting_funds
        - in_review
        - funds_received
        - payment_submitted
        - payment_processed
        - canceled
        - error
        - undeliverable
        - returned
        - refunded
      description: Status of an onramp or offramp transfer.
      title: OnrampTransferStatus
      x-stainless-model: fiat.onramp_transfer_status
    OfframpDepositInstructions:
      type: object
      properties:
        amount:
          type: string
        currency:
          $ref: '#/components/schemas/OnrampAsset'
        chain:
          $ref: '#/components/schemas/OnrampChain'
        to_address:
          type: string
        from_address:
          type: string
      required:
        - amount
        - currency
        - chain
        - to_address
        - from_address
      description: Deposit instructions for an offramp transfer.
      title: OfframpDepositInstructions
      x-stainless-model: fiat.offramp_deposit_instructions
  securitySchemes:
    appSecretAuth:
      type: http
      scheme: basic
      description: >-
        Basic Auth header with your app ID as the username and your app secret
        as the password.

````