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

# Post Swap Route Limits

> Calculates limits from JSON, including optional integrator_fee_splits. Nonnegative integer shares must total at most 2000 bps; zero-bps entries are ignored. Active recipients must be nonzero Base EVM addresses. Optional fee_sponsorship_percentage (0–100) sponsors that percentage of fees; integrator fees are not sponsored.



## OpenAPI

````yaml https://api.layerswap.io/swagger/v2/swagger.json post /api/v2/limits
openapi: 3.0.1
info:
  title: Layerswap API V2
  version: v2
servers:
  - url: https://api.layerswap.io
    description: Mainnet
security:
  - X-LS-APIKEY: []
paths:
  /api/v2/limits:
    post:
      tags:
        - Swaps
      summary: Post Swap Route Limits
      description: >-
        Calculates limits from JSON, including optional integrator_fee_splits.
        Nonnegative integer shares must total at most 2000 bps; zero-bps entries
        are ignored. Active recipients must be nonzero Base EVM addresses.
        Optional fee_sponsorship_percentage (0–100) sponsors that percentage of
        fees; integrator fees are not sponsored.
      parameters:
        - name: X-LS-APIKEY
          in: header
          schema:
            type: string
            default: >-
              NDBxG+aon6WlbgIA2LfwmcbLU52qUL9qTnztTuTRPNSohf/VnxXpRaJlA5uLSQVqP8YGIiy/0mz+mMeZhLY4/Q
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostLimitsRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseSwapRouteLimitsModel'
components:
  schemas:
    PostLimitsRequest:
      type: object
      properties:
        source_network:
          type: string
        source_token:
          type: string
        destination_network:
          type: string
        destination_token:
          type: string
        source_address:
          type: string
          nullable: true
        destination_address:
          type: string
          nullable: true
        use_deposit_address:
          type: boolean
        use_gasless:
          type: boolean
        use_frontend_swap:
          type: boolean
        refuel:
          type: boolean
        fee_sponsorship_percentage:
          type: integer
          format: int32
        integrator_fee_splits:
          type: array
          items:
            $ref: '#/components/schemas/IntegratorFeeSplit'
          nullable: true
      additionalProperties: false
    ApiResponseSwapRouteLimitsModel:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
        data:
          $ref: '#/components/schemas/SwapRouteLimitsModel'
      additionalProperties: false
    IntegratorFeeSplit:
      type: object
      properties:
        recipient:
          type: string
        bps:
          type: integer
          format: int32
      additionalProperties: false
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        metadata:
          type: object
          additionalProperties: {}
      additionalProperties: false
    SwapRouteLimitsModel:
      type: object
      properties:
        fee_sponsorship_percentage:
          type: integer
          format: int32
        min_amount_in_usd:
          type: number
          format: double
        min_amount:
          type: number
          format: double
        max_amount_in_usd:
          type: number
          format: double
        max_amount:
          type: number
          format: double
      additionalProperties: false
  securitySchemes:
    X-LS-APIKEY:
      type: apiKey
      name: X-LS-APIKEY
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.