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

# Create temporary VA onramp

> Creates a StRails temporary virtual account for a fixed NGN amount (~30 min TTL).
Third-party deposits are accepted. Default `sweepToOfframp=true` moves minted
tokens to the customer's permanent Smart Wallet. Requires `transfers:write`.




## OpenAPI

````yaml /openapi.yaml post /rails/onramps
openapi: 3.1.0
info:
  title: Remitflex API
  version: 1.0.0
  description: >
    Programmatic access to Remitflex payment routes, fiat rates, customers, and
    transactions.


    **Dashboard:** Create API keys at https://dashboard.remitflex.io


    **Authentication:** Send your API key as `Authorization: Bearer
    rmf_live_...` or `rmf_test_...`.


    **Idempotency:** Mutating requests (`POST`, `PUT`, `PATCH`, `DELETE`)
    require an `Idempotency-Key` header when authenticated with an API key.
servers:
  - url: http://localhost:4000/v1
    description: Local development
  - url: https://api.remitflex.io/v1
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /rails/onramps:
    post:
      tags:
        - NGN rails
      summary: Create temporary VA onramp
      description: >
        Creates a StRails temporary virtual account for a fixed NGN amount (~30
        min TTL).

        Third-party deposits are accepted. Default `sweepToOfframp=true` moves
        minted

        tokens to the customer's permanent Smart Wallet. Requires
        `transfers:write`.
      operationId: createRailsOnramp
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - amount
              properties:
                customerId:
                  type: string
                  format: uuid
                amount:
                  type: number
                  exclusiveMinimum: 0
                sweepToOfframp:
                  type: boolean
                  default: true
                autoSwap:
                  type: boolean
                  default: false
                assetSwap:
                  type: string
                  enum:
                    - USDC
                    - USDT
                owner:
                  type: string
                destinationAddress:
                  type: string
            example:
              amount: 5000
              sweepToOfframp: true
              autoSwap: false
      responses:
        '201':
          description: Rails onramp created
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >
        API key created in the Remitflex Dashboard at dashboard.remitflex.io
        (`rmf_live_...` or `rmf_test_...`).

        Key management endpoints require a dashboard JWT and are not part of
        this reference.

````