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

# Preview a withdrawal

> Returns real fee + receive estimates for a withdrawal without creating one. Optional — /execution/withdraw does not require a prior preview.



## OpenAPI

````yaml /openapi/openapi.json post /execution/withdraw/preview
openapi: 3.0.2
info:
  title: AGG API
  version: 1.0.0
  description: >-
    Prediction market aggregator REST API — authentication, users, venue events,
    venue markets, orderbooks, charts, and execution workflows.
servers:
  - url: https://api.agg.market
    description: Production
  - url: https://api.staging.agg.market
    description: Staging
security: []
paths:
  /execution/withdraw/preview:
    post:
      tags:
        - Execution
      summary: Preview a withdrawal
      description: >-
        Returns real fee + receive estimates for a withdrawal without creating
        one. Optional — /execution/withdraw does not require a prior preview.
      operationId: withdrawPreview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - amountRaw
                - tokenSymbol
                - destinationAddress
                - destinationChainId
              properties:
                amountRaw:
                  pattern: ^[1-9][0-9]*$
                  description: Positive integer string in the token's native decimals.
                  type: string
                tokenSymbol:
                  description: Stable-coin symbol the withdrawal is denominated in.
                  type: string
                  enum:
                    - USDC
                    - USDC.e
                    - USDT
                destinationAddress:
                  pattern: ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
                  description: >-
                    Recipient address. EVM destinations: 0x-prefixed 20-byte
                    hex. Solana: base58 (32–44 chars).
                  type: string
                destinationChainId:
                  minimum: 1
                  description: Chain ID where the recipient address should receive funds.
                  type: integer
                max:
                  description: Cap to the deliverable maximum (withdraw-max intent).
                  type: boolean
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                required:
                  - receiveAmountRaw
                  - feeRaw
                  - relayFeeRaw
                  - networkFeeRaw
                  - pricingStatus
                  - quoteExpiresAt
                  - unviableReason
                  - maxDeliverableRaw
                properties:
                  receiveAmountRaw:
                    type: string
                    nullable: true
                  feeRaw:
                    type: string
                    nullable: true
                  relayFeeRaw:
                    type: string
                    nullable: true
                  networkFeeRaw:
                    type: string
                    nullable: true
                  pricingStatus:
                    type: string
                    enum:
                      - quoted
                      - unviable
                  quoteExpiresAt:
                    type: string
                    nullable: true
                  unviableReason:
                    type: string
                    nullable: true
                  maxDeliverableRaw:
                    type: string
                    nullable: true
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '401':
          description: '401'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
      security:
        - appId: []
          bearerAuth: []
components:
  securitySchemes:
    appId:
      type: apiKey
      in: header
      name: x-app-id
      description: Your application ID. Required for all app-tier and user-tier routes.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token returned by POST /auth/verify. Required for user-tier
        routes.

````