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

# Zap-Out — Get quotes for withdrawing liquidity

> Returns quotes for converting position tokens to different output combinations (token0 to token1, token1 to token0, to base token, etc.) before executing a zap-out



## OpenAPI

````yaml /api-reference/openapi.json post /position/decrease-quotes
openapi: 3.0.0
info:
  title: LP Agent Open API
  version: 1.0.0
  description: |+
    Public API for LP Agent

    **Authentication**

    All endpoints require an API key passed via the `x-api-key` header.

servers:
  - url: https://api.lpagent.io/open-api/v1
    description: Production
security:
  - apiKeyAuth: []
tags: []
paths:
  /position/decrease-quotes:
    post:
      tags:
        - Position
      summary: Zap-Out — Get quotes for withdrawing liquidity
      description: >-
        Returns quotes for converting position tokens to different output
        combinations (token0 to token1, token1 to token0, to base token, etc.)
        before executing a zap-out
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - id
                - bps
              properties:
                id:
                  type: string
                  description: The encrypted position ID
                bps:
                  type: integer
                  description: >-
                    The percentage of position to close in basis points
                    (0-10000)
                  minimum: 0
                  maximum: 10000
      responses:
        '200':
          description: Quotes for different token combinations
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                      - error
                  data:
                    type: object
        '400':
          description: Invalid parameters
        '500':
          description: Internal server error
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````