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

> ## Agent Instructions
> ## Agent Instructions (AIsa)
>
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Paid calls need approval first. Docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP discovery are free to read. Before any paid, dynamically priced, or high-cost call, state the exact scope, rate, and maximum USD exposure, then wait for a separate user message approving that scope and cap. A request to collect data is not approval; do not send unapproved probes. Full rule: https://aisa.one/docs/llms.txt

# Get a quote

> Get a bridge quote for a deposit or withdrawal.

<!-- aisa-pricing:start -->
Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->

## Request contract

* **Method and path:** POST /apis/v1/polymarket/quote
* **Availability:** enabled
* **Request URL template:** [https://api.aisa.one/apis/v1/polymarket/quote](https://api.aisa.one/apis/v1/polymarket/quote)
* **Runtime facts:** a22ef60cc6dc19c564ea7cc9b385d87a61bdb3cb13e168918fa7d5ae825d794e

[Complete OpenAPI definition](https://aisa.one/docs/openapi/polymarket-bridge.json)

Effective request and pricing declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "any_polymarket_bridge_apis_v1_polymarket_quote",
  "method": "POST",
  "path": "/apis/v1/polymarket/quote",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "fromAmountBaseUnit",
            "fromChainId",
            "fromTokenAddress",
            "recipientAddress",
            "toChainId",
            "toTokenAddress"
          ],
          "properties": {
            "fromAmountBaseUnit": {
              "type": "string",
              "description": "Amount of tokens to send",
              "example": "10000000"
            },
            "fromChainId": {
              "type": "string",
              "description": "Source Chain ID",
              "example": "137"
            },
            "fromTokenAddress": {
              "type": "string",
              "description": "Source token address",
              "example": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
            },
            "recipientAddress": {
              "type": "string",
              "description": "Address of the recipient",
              "example": "0x17eC161f126e82A8ba337f4022d574DBEaFef575"
            },
            "toChainId": {
              "type": "string",
              "description": "Destination Chain ID",
              "example": "137"
            },
            "toTokenAddress": {
              "type": "string",
              "description": "Destination token address",
              "example": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
            }
          }
        },
        "example": {
          "fromAmountBaseUnit": "10000000",
          "fromChainId": "137",
          "fromTokenAddress": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
          "recipientAddress": "0x17eC161f126e82A8ba337f4022d574DBEaFef575",
          "toChainId": "137",
          "toTokenAddress": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
        }
      }
    }
  },
  "x-aisa-status": "enabled",
  "x-aisa-pricing": {
    "cost_contract": "fixed_success",
    "customer_pricing": "fixed_success",
    "default_request_estimate_usd": 0.012,
    "estimate_source": "profile_seed",
    "evidence_source": "request_snapshot"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Published reference price: \$0.012 USD per successful request. Account-specific pricing and final settlement may differ.

Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.

* **Default request reference estimate (USD):** 0.012
* **Cost contract:** fixed\_success
* **Settlement evidence source:** request\_snapshot


## OpenAPI

````yaml openapi/polymarket-bridge.json POST /apis/v1/polymarket/quote
openapi: 3.1.0
info:
  description: ''
  title: Polymarket Bridge
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-configured-paths:
    - /apis/v1/polymarket/deposit
    - /apis/v1/polymarket/quote
    - /apis/v1/polymarket/status/{address}
    - /apis/v1/polymarket/supported-assets
    - /apis/v1/polymarket/withdraw
  x-aisa-document:
    facts_hash: a22ef60cc6dc19c564ea7cc9b385d87a61bdb3cb13e168918fa7d5ae825d794e
    generator_version: '3'
    protocol_version: '1'
    schema_version: '1'
    composer_version: '20'
    response_pending: []
    document_hash: sha256:879c25176c63cbc15b56b70705e2854f46dfd28c4c8aeb10dbeed6672a013977
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: polymarket-bridge
  x-aisa-catalogs:
    polymarket-bridge:
      title: Polymarket Bridge
      description: ''
      x-aisa-document:
        facts_hash: a22ef60cc6dc19c564ea7cc9b385d87a61bdb3cb13e168918fa7d5ae825d794e
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/polymarket/quote:
    post:
      tags:
        - default
      summary: Get a quote
      description: >-
        Get a bridge quote for a deposit or withdrawal.


        <!-- aisa-pricing:start -->

        Published reference price: $0.012 USD per successful request.
        Account-specific pricing and final settlement may differ.

        <!-- aisa-pricing:end -->
      operationId: any_polymarket_bridge_apis_v1_polymarket_quote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - fromAmountBaseUnit
                - fromChainId
                - fromTokenAddress
                - recipientAddress
                - toChainId
                - toTokenAddress
              properties:
                fromAmountBaseUnit:
                  type: string
                  description: Amount of tokens to send
                  example: '10000000'
                fromChainId:
                  type: string
                  description: Source Chain ID
                  example: '137'
                fromTokenAddress:
                  type: string
                  description: Source token address
                  example: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'
                recipientAddress:
                  type: string
                  description: Address of the recipient
                  example: '0x17eC161f126e82A8ba337f4022d574DBEaFef575'
                toChainId:
                  type: string
                  description: Destination Chain ID
                  example: '137'
                toTokenAddress:
                  type: string
                  description: Destination token address
                  example: '0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB'
            example:
              fromAmountBaseUnit: '10000000'
              fromChainId: '137'
              fromTokenAddress: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'
              recipientAddress: '0x17eC161f126e82A8ba337f4022d574DBEaFef575'
              toChainId: '137'
              toTokenAddress: '0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB'
      responses:
        '200':
          description: Quote retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response7A88Af0Ff8Eb_QuoteResponse'
              example:
                estCheckoutTimeMs: 25000
                estFeeBreakdown:
                  appFeeLabel: Fun.xyz fee
                  appFeePercent: 0
                  appFeeUsd: 0
                  fillCostPercent: 0
                  fillCostUsd: 0
                  gasUsd: 0.003854
                  maxSlippage: 0
                  minReceived: 14.488305
                  swapImpact: 0
                  swapImpactUsd: 0
                  totalImpact: 0
                  totalImpactUsd: 0
                estInputUsd: 14.488305
                estOutputUsd: 14.488305
                estToTokenBaseUnit: '14491203'
                quoteId: >-
                  0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - lang: text
          label: Reference example
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request POST \
              --url https://api.aisa.one/apis/v1/polymarket/quote \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "fromAmountBaseUnit": "10000000",
              "fromChainId": "137",
              "fromTokenAddress": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
              "recipientAddress": "0x17eC161f126e82A8ba337f4022d574DBEaFef575",
              "toChainId": "137",
              "toTokenAddress": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
            }'
components:
  schemas:
    Response7A88Af0Ff8Eb_QuoteResponse:
      type: object
      properties:
        estCheckoutTimeMs:
          type: integer
          description: Estimated time to complete the checkout in milliseconds
          example: 25000
        estFeeBreakdown:
          $ref: '#/components/schemas/Response7A88Af0Ff8Eb_FeeBreakdown'
        estInputUsd:
          type: number
          description: Estimated token amount received in USD
          example: 14.488305
        estOutputUsd:
          type: number
          description: Estimated token amount sent in USD
          example: 14.488305
        estToTokenBaseUnit:
          type: string
          description: Estimated token amount received
          example: '14491203'
        quoteId:
          type: string
          description: Unique quote id of the request
          example: '0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5'
    Response7A88Af0Ff8Eb_FeeBreakdown:
      type: object
      description: Breakdown of the estimated fees
      properties:
        appFeeLabel:
          type: string
          description: Label of the app fee
          example: Fun.xyz fee
        appFeePercent:
          type: number
          description: App fees as a percentage of the total amount sent
          example: 0
        appFeeUsd:
          type: number
          description: App fees in USD
          example: 0
        fillCostPercent:
          type: number
          description: Fill cost percentage of the total amount sent
          example: 0
        fillCostUsd:
          type: number
          description: Fill cost in USD
          example: 0
        gasUsd:
          type: number
          description: Gas fee in USD
          example: 0.003854
        maxSlippage:
          type: number
          description: Maximum potential slippage as a percentage
          example: 0
        minReceived:
          type: number
          description: Amount after factoring slippage
          example: 14.488305
        swapImpact:
          type: number
          description: Swap impact as a percentage of the total amount sent
          example: 0
        swapImpactUsd:
          type: number
          description: Swap impact of the transaction in USD
          example: 0
        totalImpact:
          type: number
          description: Total impact as a percentage of the total amount sent
          example: 0
        totalImpactUsd:
          type: number
          description: Impact cost of the transaction
          example: 0
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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