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

# Get an attributed builder quote

> Requires quote scope and an activated onchain builder ID. Free allows 10 quote requests per minute shared across workspace keys; paid workspace limits remain unchanged. Returns gross output, separate Route and builder fees, net output and minimum received. Amounts are token base units. Omit builderCode to use your workspace ID; omit builderFeeBps to use its registered default.

[Authentication](/api-reference/authentication) · [Builder integration](/builders)


## OpenAPI

````yaml openapi.json GET /api/v2/builders/quote
openapi: 3.1.0
info:
  title: route
  version: 2.15.0
  description: >-
    Route compares swap paths offchain and executes swaps on Robinhood Chain.
    The API returns quotes and unsigned transactions. It does not sign or submit
    for you. V2 deducts a disclosed pair-dependent output fee up to 0.50%; pool
    fees, provider charges and gas may still apply. Contracts are experimental
    and unaudited. Public routing and data endpoints require no API key. Use the
    documented /api/v2 endpoints for integrations. Builder endpoints require a
    scoped x-api-key from build.route.fun. Public quote, swap and data endpoints
    remain keyless.
servers:
  - url: https://api.route.fun
security: []
paths:
  /api/v2/builders/quote:
    get:
      tags:
        - Builder API
      summary: Get an attributed builder quote
      description: >-
        Requires quote scope and an activated onchain builder ID. Free allows 10
        quote requests per minute shared across workspace keys; paid workspace
        limits remain unchanged. Returns gross output, separate Route and
        builder fees, net output and minimum received. Amounts are token base
        units. Omit builderCode to use your workspace ID; omit builderFeeBps to
        use its registered default.
      operationId: builderQuote
      parameters:
        - name: chainId
          in: query
          required: true
          schema:
            type: integer
            const: 4663
        - in: query
          name: tokenIn
          required: true
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{40}$
        - in: query
          name: tokenOut
          required: true
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{40}$
        - in: query
          name: amountIn
          required: true
          schema:
            type: string
            pattern: ^[0-9]+$
        - in: query
          name: payer
          required: true
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{40}$
        - in: query
          name: recipient
          required: false
          schema:
            type: string
            pattern: ^0x[0-9a-fA-F]{40}$
        - in: query
          name: slippageBps
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 50
        - in: query
          name: builderCode
          required: false
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]{3,32}$
            description: >-
              Public, case-sensitive registered attribution code. May differ
              from the API key workspace. Omitted: use the key workspace code.
        - in: query
          name: builderFeeBps
          required: false
          schema:
            type: integer
            minimum: 0
            maximum: 50
        - in: query
          name: provider
          required: false
          schema:
            type: string
            enum:
              - route
              - kyber
              - nordstern
              - kyber-direct
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                required:
                  - quoteId
                  - builderCode
                  - amountOut
                  - minimumAmountOut
                  - fees
                  - expiresAt
                  - settlementAvailable
                properties:
                  quoteId:
                    type: string
                  builderCode:
                    type: string
                    pattern: ^[A-Za-z0-9_-]{3,32}$
                    description: >-
                      Public, case-sensitive registered attribution code. May
                      differ from the API key workspace. Omitted: use the key
                      workspace code.
                  chainId:
                    type: integer
                    const: 4663
                  payer:
                    type: string
                    pattern: ^0x[0-9a-fA-F]{40}$
                  recipient:
                    type: string
                    pattern: ^0x[0-9a-fA-F]{40}$
                  tokenIn:
                    type: string
                    pattern: ^0x[0-9a-fA-F]{40}$
                  tokenOut:
                    type: string
                    pattern: ^0x[0-9a-fA-F]{40}$
                  amountIn:
                    type: string
                    pattern: ^[0-9]+$
                  grossAmountOut:
                    type: string
                    pattern: ^[0-9]+$
                  routeFee:
                    type: string
                    pattern: ^[0-9]+$
                  builderFee:
                    type: string
                    pattern: ^[0-9]+$
                  amountOut:
                    type: string
                    pattern: ^[0-9]+$
                  minimumAmountOut:
                    type: string
                    pattern: ^[0-9]+$
                  fees:
                    type: object
                    required:
                      - routeBps
                      - builderBps
                      - policyVersion
                    properties:
                      routeBps:
                        type: integer
                        minimum: 0
                        maximum: 50
                      builderBps:
                        type: integer
                        minimum: 0
                        maximum: 50
                      builderRecipient:
                        anyOf:
                          - type: string
                            pattern: ^0x[0-9a-fA-F]{40}$
                          - type: 'null'
                      policyVersion:
                        type: integer
                  policySource:
                    type: string
                    enum:
                      - onchain
                      - local-preview
                  registry:
                    type:
                      - string
                      - 'null'
                  expiresAt:
                    type: integer
                  settlementAvailable:
                    type: boolean
                  provider:
                    type: string
                  routes:
                    type: array
                    items:
                      type: object
                  warnings:
                    type: array
                    items:
                      type: string
        '400':
          description: Invalid request or fee above cap
        '401':
          description: Missing, invalid, expired or revoked key
        '403':
          description: Key scope, builder identity or access denied
        '409':
          description: Expired quote, changed policy, price or receipt conflict
        '429':
          description: Workspace or global capacity limit; obey Retry-After
        '503':
          description: Network unavailable or builder settlement not commissioned
      security:
        - BuilderKey: []
components:
  securitySchemes:
    BuilderKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Server-side key created in an authenticated developer workspace. Builder
        codes are public attribution, not credentials.

````