{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    },
    "schemas": {
      "Provider7A88Af0Ff8Eb_DepositRequest": {
        "type": "object",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "$ref": "#/components/schemas/Provider7A88Af0Ff8Eb_Address"
          }
        }
      },
      "Provider7A88Af0Ff8Eb_Address": {
        "type": "string",
        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
        "pattern": "^0x[a-fA-F0-9]{40}$",
        "example": "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
      },
      "Response7A88Af0Ff8Eb_DepositResponse": {
        "type": "object",
        "properties": {
          "address": {
            "type": "object",
            "description": "Bridge addresses for different blockchain networks",
            "properties": {
              "evm": {
                "type": "string",
                "description": "EVM-compatible bridge address (Ethereum, Polygon, Arbitrum, Base, etc.)",
                "example": "0x23566f8b2E82aDfCf01846E54899d110e97AC053"
              },
              "svm": {
                "type": "string",
                "description": "Solana Virtual Machine bridge address",
                "example": "CrvTBvzryYxBHbWu2TiQpcqD5M7Le7iBKzVmEj3f36Jb"
              },
              "btc": {
                "type": "string",
                "description": "Bitcoin bridge address",
                "example": "bc1q8eau83qffxcj8ht4hsjdza3lha9r3egfqysj3g"
              },
              "tron": {
                "type": "string",
                "description": "Tron bridge address"
              }
            }
          },
          "note": {
            "type": "string",
            "description": "Additional information about the bridge addresses",
            "example": "Only certain chains and tokens are supported. See /supported-assets for details."
          }
        }
      },
      "Provider7A88Af0Ff8Eb_QuoteRequest": {
        "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"
          }
        }
      },
      "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
          }
        }
      },
      "Response7A88Af0Ff8Eb_TransactionStatusResponse": {
        "type": "object",
        "required": [
          "transactions",
          "nextCursor"
        ],
        "properties": {
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Response7A88Af0Ff8Eb_Transaction"
            },
            "description": "One page of transactions for the given address, newest first. This is a page, not the full history for the address.\n"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque continuation token for the next page, or null when the pagination walk is complete. Pass it back verbatim as `cursor` on the next request; never parse, modify, construct, or reuse it with a different address. Stop on null rather than on an empty page or a page shorter than `limit`.\n",
            "example": "eyJsYXN0SWQiOiI0MiJ9"
          }
        }
      },
      "Response7A88Af0Ff8Eb_Transaction": {
        "type": "object",
        "properties": {
          "fromChainId": {
            "type": "string",
            "description": "Source chain ID",
            "example": "1151111081099710"
          },
          "fromTokenAddress": {
            "type": "string",
            "description": "Source token contract address",
            "example": "11111111111111111111111111111111"
          },
          "fromAmountBaseUnit": {
            "type": "string",
            "description": "Amount in base units (without decimals)",
            "example": "13566635"
          },
          "toChainId": {
            "type": "string",
            "description": "Destination chain ID",
            "example": "137"
          },
          "toTokenAddress": {
            "type": "string",
            "description": "Destination token contract address",
            "example": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
          },
          "status": {
            "type": "string",
            "description": "Current status of the transaction. If a transaction fails, remains stuck, or funds are held due to a compliance check, direct users to our Bridge API provider's support (https://intercom.help/funxyz/en/articles/10732578-contact-us).\n",
            "enum": [
              "DEPOSIT_DETECTED",
              "PROCESSING",
              "ORIGIN_TX_CONFIRMED",
              "SUBMITTED",
              "COMPLETED",
              "FAILED"
            ],
            "example": "COMPLETED"
          },
          "txHash": {
            "type": "string",
            "description": "Transaction hash (only available when status is COMPLETED)",
            "example": "3atr19NAiNCYt24RHM1WnzZp47RXskpTDzspJoCBBaMFwUB8fk37hFkxz35P5UEnnmWz21rb2t5wJ8pq3EE2XnxU"
          },
          "createdTimeMs": {
            "type": "number",
            "description": "Unix timestamp in milliseconds when transaction was created (missing when status is DEPOSIT_DETECTED)",
            "example": 1757531217339
          }
        }
      },
      "Response7A88Af0Ff8Eb_SupportedAssetsResponse": {
        "type": "object",
        "properties": {
          "supportedAssets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Response7A88Af0Ff8Eb_SupportedAsset"
            },
            "description": "List of supported assets with minimum amounts for deposits and withdrawals"
          }
        }
      },
      "Response7A88Af0Ff8Eb_SupportedAsset": {
        "type": "object",
        "properties": {
          "chainId": {
            "type": "string",
            "description": "Chain ID",
            "example": "1"
          },
          "chainName": {
            "type": "string",
            "description": "Human-readable chain name",
            "example": "Ethereum"
          },
          "token": {
            "$ref": "#/components/schemas/Response7A88Af0Ff8Eb_Token"
          },
          "minCheckoutUsd": {
            "type": "number",
            "description": "Minimum amount in USD for deposits and withdrawals",
            "example": 45
          }
        }
      },
      "Response7A88Af0Ff8Eb_Token": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Full token name",
            "example": "USD Coin"
          },
          "symbol": {
            "type": "string",
            "description": "Token symbol",
            "example": "USDC"
          },
          "address": {
            "type": "string",
            "description": "Token contract address",
            "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
          },
          "decimals": {
            "type": "integer",
            "description": "Token decimals",
            "example": 6
          }
        }
      },
      "Provider7A88Af0Ff8Eb_WithdrawalRequest": {
        "type": "object",
        "required": [
          "address",
          "toChainId",
          "toTokenAddress",
          "recipientAddr"
        ],
        "properties": {
          "address": {
            "$ref": "#/components/schemas/Provider7A88Af0Ff8Eb_Address"
          },
          "toChainId": {
            "type": "string",
            "description": "Destination chain ID (e.g., \"1\" for Ethereum, \"8453\" for Base, \"1151111081099710\" for Solana)",
            "example": "1"
          },
          "toTokenAddress": {
            "type": "string",
            "description": "Destination token contract address",
            "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
          },
          "recipientAddr": {
            "type": "string",
            "description": "Destination wallet address where funds will be sent",
            "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          }
        }
      }
    },
    "responses": {},
    "parameters": {},
    "examples": {},
    "requestBodies": {},
    "headers": {},
    "links": {},
    "callbacks": {},
    "pathItems": {}
  },
  "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.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "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.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        },
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        }
      }
    }
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "paths": {
    "/apis/v1/polymarket/deposit": {
      "post": {
        "description": "Create deposit addresses for bridging assets into Polymarket.\n\n<!-- aisa-pricing:start -->\nPublished reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.\n<!-- aisa-pricing:end -->",
        "operationId": "any_polymarket_bridge_apis_v1_polymarket_deposit",
        "responses": {
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response7A88Af0Ff8Eb_DepositResponse"
                }
              }
            },
            "description": "Bridge addresses created successfully"
          }
        },
        "summary": "Create deposit addresses",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": true,
          "mpp_methods": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD",
            "OPTIONS",
            "TRACE"
          ],
          "x402": false
        },
        "x-aisa-category": "9",
        "x-aisa-passthrough": true,
        "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"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "cf5f6269fc6e"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/deposit",
        "x-aisa-validation": "provider",
        "x-aisa-catalog-id": "polymarket-bridge",
        "x-aisa-runtime-operation": {
          "operation_id": "any_polymarket_bridge_apis_v1_polymarket_deposit",
          "method": "ANY",
          "path": "/apis/v1/polymarket/deposit"
        },
        "parameters": [
          {
            "name": "X-Builder-Code",
            "in": "header",
            "required": false,
            "description": "Optional builder code (bytes32 hex) attributing this request to your integration so transfer issues can be traced to your app. Omitting it still succeeds but returns a `missing_builder_code` warning; a malformed code returns 400. Get your code at https://polymarket.com/settings?tab=builder\n",
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{64}$",
              "example": "0x00000000000000000000000000000000000000000000000000000000abcd1234"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "address"
                ],
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "example": "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
                  }
                }
              },
              "example": {
                "address": "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
              }
            }
          }
        },
        "x-aisa-source": {
          "kind": "provider_openapi",
          "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
          "fetched_at": "2026-09-29T15:09:49.674222+00:00",
          "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
          "converter": "scripts/import_upstream.py@1",
          "owner": "AIsa-team/docs",
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "refresh_interval_hours": 24,
          "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
        },
        "x-aisa-response-source": {
          "kind": "upstream_success_contract",
          "source": {
            "kind": "provider_openapi",
            "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
            "fetched_at": "2026-09-29T15:09:49.674222+00:00",
            "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
            "converter": "scripts/import_upstream.py@1",
            "owner": "AIsa-team/docs",
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "refresh_interval_hours": 24,
            "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
          },
          "content_hash": "sha256:ca510f5356726c0e3dd5bf8708a73cb5334490694261ba544b3aaf96514b050e"
        },
        "x-codeSamples": [
          {
            "lang": "text",
            "label": "Reference example",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/polymarket/deposit \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"address\": \"0x56687bf447db6ffa42ffe2204a05edaa20f55839\"\n}'"
          }
        ],
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-bridge/any_polymarket_bridge_apis_v1_polymarket_deposit"
      }
    },
    "/apis/v1/polymarket/quote": {
      "post": {
        "description": "Get a bridge quote for a deposit or withdrawal.\n\n<!-- aisa-pricing:start -->\nPublished reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.\n<!-- aisa-pricing:end -->",
        "operationId": "any_polymarket_bridge_apis_v1_polymarket_quote",
        "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"
          }
        },
        "summary": "Get a quote",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": true,
          "mpp_methods": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD",
            "OPTIONS",
            "TRACE"
          ],
          "x402": false
        },
        "x-aisa-category": "9",
        "x-aisa-passthrough": true,
        "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"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "ec33a17305c6"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/quote",
        "x-aisa-validation": "provider",
        "x-aisa-catalog-id": "polymarket-bridge",
        "x-aisa-runtime-operation": {
          "operation_id": "any_polymarket_bridge_apis_v1_polymarket_quote",
          "method": "ANY",
          "path": "/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"
              }
            }
          }
        },
        "x-aisa-source": {
          "kind": "provider_openapi",
          "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
          "fetched_at": "2026-09-29T15:09:49.674222+00:00",
          "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
          "converter": "scripts/import_upstream.py@1",
          "owner": "AIsa-team/docs",
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "refresh_interval_hours": 24,
          "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
        },
        "x-aisa-response-source": {
          "kind": "upstream_success_contract",
          "source": {
            "kind": "provider_openapi",
            "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
            "fetched_at": "2026-09-29T15:09:49.674222+00:00",
            "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
            "converter": "scripts/import_upstream.py@1",
            "owner": "AIsa-team/docs",
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "refresh_interval_hours": 24,
            "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
          },
          "content_hash": "sha256:04d8ae331b43a5c3433d12d4455c6ebe51e0fc19c7948c1480456a83887f0690"
        },
        "x-codeSamples": [
          {
            "lang": "text",
            "label": "Reference example",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/polymarket/quote \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"fromAmountBaseUnit\": \"10000000\",\n  \"fromChainId\": \"137\",\n  \"fromTokenAddress\": \"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359\",\n  \"recipientAddress\": \"0x17eC161f126e82A8ba337f4022d574DBEaFef575\",\n  \"toChainId\": \"137\",\n  \"toTokenAddress\": \"0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB\"\n}'"
          }
        ],
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-bridge/any_polymarket_bridge_apis_v1_polymarket_quote"
      }
    },
    "/apis/v1/polymarket/status/{address}": {
      "get": {
        "description": "Get transaction status for bridge activity associated with an address.\n\n<!-- aisa-pricing:start -->\nPublished reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.\n<!-- aisa-pricing:end -->",
        "operationId": "any_polymarket_bridge_apis_v1_polymarket_status_address",
        "responses": {
          "200": {
            "description": "Successfully retrieved transaction status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response7A88Af0Ff8Eb_TransactionStatusResponse"
                },
                "example": {
                  "transactions": [
                    {
                      "fromChainId": "1151111081099710",
                      "fromTokenAddress": "11111111111111111111111111111111",
                      "fromAmountBaseUnit": "13566635",
                      "toChainId": "137",
                      "toTokenAddress": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB",
                      "status": "DEPOSIT_DETECTED"
                    },
                    {
                      "fromChainId": "1151111081099710",
                      "fromTokenAddress": "11111111111111111111111111111111",
                      "fromAmountBaseUnit": "13400000",
                      "toChainId": "137",
                      "toTokenAddress": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB",
                      "createdTimeMs": 1757646914535,
                      "status": "PROCESSING"
                    },
                    {
                      "fromChainId": "1151111081099710",
                      "fromTokenAddress": "11111111111111111111111111111111",
                      "fromAmountBaseUnit": "13500152",
                      "toChainId": "137",
                      "toTokenAddress": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB",
                      "txHash": "3atr19NAiNCYt24RHM1WnzZp47RXskpTDzspJoCBBaMFwUB8fk37hFkxz35P5UEnnmWz21rb2t5wJ8pq3EE2XnxU",
                      "createdTimeMs": 1757531217339,
                      "status": "COMPLETED"
                    }
                  ],
                  "nextCursor": "eyJsYXN0SWQiOiI0MiJ9"
                }
              }
            }
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get transaction status",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": true,
          "mpp_methods": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD",
            "OPTIONS",
            "TRACE"
          ],
          "x402": false
        },
        "x-aisa-category": "9",
        "x-aisa-passthrough": true,
        "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"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "430981a580bd"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/status/{address}",
        "x-aisa-validation": "provider",
        "x-aisa-catalog-id": "polymarket-bridge",
        "x-aisa-runtime-operation": {
          "operation_id": "any_polymarket_bridge_apis_v1_polymarket_status_address",
          "method": "ANY",
          "path": "/apis/v1/polymarket/status/{address}"
        },
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "The bridge address to query for transaction status, taken from the `/deposit` or `/withdraw` response. EVM, Solana, Tron, and Bitcoin address formats are supported. EVM addresses are normalized before the request is forwarded upstream.\n",
            "schema": {
              "type": "string"
            },
            "example": "EXoZue2avJae1d45B3fVw2unhkrtToSYQqHtHgfZ2cbE"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque continuation token returned as `nextCursor` by the previous response. Omit it to request the first page. URL-encode it, since cursors can contain characters such as `+`, `/`, and `=`. Invalid, tampered, or cross-address tokens return 400; restart the walk without a cursor when that happens.\n",
            "schema": {
              "type": "string"
            },
            "example": "eyJsYXN0SWQiOiI0MiJ9"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of transactions per page. A page may contain fewer transactions than requested and still have a following page.\n",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "example": 100
          },
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "Compatibility parameter forwarded upstream for existing integrations. Pagination applies whether or not it is sent, so new integrations should omit it and use `cursor` and `limit` alone. When sent, the only supported value is `true`.\n",
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            }
          }
        ],
        "x-aisa-source": {
          "kind": "provider_openapi",
          "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
          "fetched_at": "2026-09-29T15:09:49.674222+00:00",
          "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
          "converter": "scripts/import_upstream.py@1",
          "owner": "AIsa-team/docs",
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "refresh_interval_hours": 24,
          "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
        },
        "x-aisa-response-source": {
          "kind": "upstream_success_contract",
          "source": {
            "kind": "provider_openapi",
            "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
            "fetched_at": "2026-09-29T15:09:49.674222+00:00",
            "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
            "converter": "scripts/import_upstream.py@1",
            "owner": "AIsa-team/docs",
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "refresh_interval_hours": 24,
            "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
          },
          "content_hash": "sha256:3d7d07efe8778fa0ef43e30107fad7a283abc6c967dd5d3faf48f84d022d61e7"
        },
        "x-codeSamples": [
          {
            "lang": "text",
            "label": "Reference example",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/polymarket/status/EXoZue2avJae1d45B3fVw2unhkrtToSYQqHtHgfZ2cbE?cursor=eyJsYXN0SWQiOiI0MiJ9&limit=100' \\\n  --header 'Authorization: Bearer <token>'"
          }
        ],
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-bridge/any_polymarket_bridge_apis_v1_polymarket_status_address"
      }
    },
    "/apis/v1/polymarket/supported-assets": {
      "get": {
        "description": "Get supported assets for deposits and withdrawals on the bridge.\n\n<!-- aisa-pricing:start -->\nPublished reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.\n<!-- aisa-pricing:end -->",
        "operationId": "any_polymarket_bridge_apis_v1_polymarket_supporte_abc2f1",
        "responses": {
          "200": {
            "description": "Successfully retrieved supported assets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response7A88Af0Ff8Eb_SupportedAssetsResponse"
                }
              }
            }
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get supported assets",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "x402": false
        },
        "x-aisa-category": "9",
        "x-aisa-passthrough": true,
        "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"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "7eecab96460a"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/supported-assets",
        "x-aisa-validation": "provider",
        "x-aisa-catalog-id": "polymarket-bridge",
        "x-aisa-runtime-operation": {
          "operation_id": "any_polymarket_bridge_apis_v1_polymarket_supporte_abc2f1",
          "method": "ANY",
          "path": "/apis/v1/polymarket/supported-assets"
        },
        "x-aisa-source": {
          "kind": "provider_openapi",
          "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
          "fetched_at": "2026-09-29T15:09:49.674222+00:00",
          "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
          "converter": "scripts/import_upstream.py@1",
          "owner": "AIsa-team/docs",
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "refresh_interval_hours": 24,
          "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
        },
        "x-aisa-response-source": {
          "kind": "upstream_success_contract",
          "source": {
            "kind": "provider_openapi",
            "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
            "fetched_at": "2026-09-29T15:09:49.674222+00:00",
            "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
            "converter": "scripts/import_upstream.py@1",
            "owner": "AIsa-team/docs",
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "refresh_interval_hours": 24,
            "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
          },
          "content_hash": "sha256:90a0be322e215b087fa53cc940e1003e8c0912d4bc570a91714be9739590c106"
        },
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-bridge/any_polymarket_bridge_apis_v1_polymarket_supporte_abc2f1"
      }
    },
    "/apis/v1/polymarket/withdraw": {
      "post": {
        "description": "Create withdrawal addresses for bridging pUSD out of Polymarket.\n\n<!-- aisa-pricing:start -->\nPublished reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.\n<!-- aisa-pricing:end -->",
        "operationId": "any_polymarket_bridge_apis_v1_polymarket_withdraw",
        "responses": {
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response7A88Af0Ff8Eb_DepositResponse"
                },
                "example": {
                  "address": {
                    "evm": "0x23566f8b2E82aDfCf01846E54899d110e97AC053",
                    "svm": "CrvTBvzryYxBHbWu2TiQpcqD5M7Le7iBKzVmEj3f36Jb",
                    "btc": "bc1q8eau83qffxcj8ht4hsjdza3lha9r3egfqysj3g"
                  },
                  "note": "Send funds to these addresses to bridge to your destination chain and token."
                }
              }
            },
            "description": "Withdrawal addresses created successfully"
          }
        },
        "summary": "Create withdrawal addresses",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": true,
          "mpp_methods": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD",
            "OPTIONS",
            "TRACE"
          ],
          "x402": false
        },
        "x-aisa-category": "9",
        "x-aisa-passthrough": true,
        "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"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "c2a84087be0b"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/withdraw",
        "x-aisa-validation": "provider",
        "x-aisa-catalog-id": "polymarket-bridge",
        "x-aisa-runtime-operation": {
          "operation_id": "any_polymarket_bridge_apis_v1_polymarket_withdraw",
          "method": "ANY",
          "path": "/apis/v1/polymarket/withdraw"
        },
        "parameters": [
          {
            "name": "X-Builder-Code",
            "in": "header",
            "required": false,
            "description": "Optional builder code (bytes32 hex) attributing this request to your integration so transfer issues can be traced to your app. Omitting it still succeeds but returns a `missing_builder_code` warning; a malformed code returns 400. Get your code at https://polymarket.com/settings?tab=builder\n",
            "schema": {
              "type": "string",
              "pattern": "^0x[a-fA-F0-9]{64}$",
              "example": "0x00000000000000000000000000000000000000000000000000000000abcd1234"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "address",
                  "toChainId",
                  "toTokenAddress",
                  "recipientAddr"
                ],
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "example": "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
                  },
                  "toChainId": {
                    "type": "string",
                    "description": "Destination chain ID (e.g., \"1\" for Ethereum, \"8453\" for Base, \"1151111081099710\" for Solana)",
                    "example": "1"
                  },
                  "toTokenAddress": {
                    "type": "string",
                    "description": "Destination token contract address",
                    "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                  },
                  "recipientAddr": {
                    "type": "string",
                    "description": "Destination wallet address where funds will be sent",
                    "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
                  }
                }
              },
              "example": {
                "address": "0x9156dd10bea4c8d7e2d591b633d1694b1d764756",
                "toChainId": "1",
                "toTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                "recipientAddr": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
              }
            }
          }
        },
        "x-aisa-source": {
          "kind": "provider_openapi",
          "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
          "fetched_at": "2026-09-29T15:09:49.674222+00:00",
          "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
          "converter": "scripts/import_upstream.py@1",
          "owner": "AIsa-team/docs",
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "refresh_interval_hours": 24,
          "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
        },
        "x-aisa-response-source": {
          "kind": "upstream_success_contract",
          "source": {
            "kind": "provider_openapi",
            "url": "https://docs.polymarket.com/api-spec/bridge-openapi.yaml",
            "fetched_at": "2026-09-29T15:09:49.674222+00:00",
            "content_hash": "sha256:be45a0a8ab0003bcb26fcc9d7b7fef3a906b1bea3b16062a769b180fe0e079fd",
            "converter": "scripts/import_upstream.py@1",
            "owner": "AIsa-team/docs",
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "refresh_interval_hours": 24,
            "policy_revision": "sha256:c435404fd140d497c1aa20dbb472f5ef821e3cd8a33e43b6e1c487559b4e90a7"
          },
          "content_hash": "sha256:8fedbfffa09b5cad1310b37bcbf791dc3596692a09c37aaf1ca4f1a784851f0f"
        },
        "x-codeSamples": [
          {
            "lang": "text",
            "label": "Reference example",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/polymarket/withdraw \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"address\": \"0x9156dd10bea4c8d7e2d591b633d1694b1d764756\",\n  \"toChainId\": \"1\",\n  \"toTokenAddress\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n  \"recipientAddr\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"\n}'"
          }
        ],
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-bridge/any_polymarket_bridge_apis_v1_polymarket_withdraw"
      }
    }
  }
}
