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

# Private swap prepare



## OpenAPI

````yaml /api-reference/openapi.yaml post /privacy/swap/prepare
openapi: 3.1.0
info:
  title: Onbeam API
  version: 1.0.0
servers:
  - url: https://api.onbeam.io
  - url: http://localhost:3004
security: []
paths:
  /privacy/swap/prepare:
    post:
      summary: Private swap prepare
      operationId: privateSwapPrepare
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrepareRequest'
      responses:
        '200':
          description: Swap prepared
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrepareResponse'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    PrepareRequest:
      type: object
      properties:
        quoteId:
          type: string
        otp:
          type: string
      required:
        - quoteId
        - otp
    PrepareResponse:
      type: object
      properties:
        prepared:
          type: boolean
      required:
        - prepared
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````