> ## 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 quote



## OpenAPI

````yaml /api-reference/openapi.yaml post /privacy/swap/quote
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/quote:
    post:
      summary: Private swap quote
      operationId: privateSwapQuote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteRequest'
      responses:
        '200':
          description: Quote created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteResponse'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    QuoteRequest:
      type: object
      properties:
        from:
          type: array
          items:
            type: object
            properties:
              address:
                type: string
              chainId:
                type: integer
              token:
                type: string
              amount:
                type: string
            required:
              - address
              - chainId
              - token
              - amount
        toChainId:
          type: integer
        toToken:
          type: string
        toAddress:
          type: string
        slippageBps:
          type: integer
      required:
        - from
        - toChainId
        - toToken
        - toAddress
    QuoteResponse:
      type: object
      properties:
        quoteId:
          type: string
      required:
        - quoteId
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````