# Uniswap Create swap calldata API

Get Uniswap Create swap calldata data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Uniswap, pass parameters such as quote, simulateTransaction, and retrieve structured data including returned gas fee field, request identifier, returned signature field, business payload, and chain identifier for market reference and account inspection, and integration reference.

Documentation: https://openany.si/market/apis/uniswap/uniswap-create-swap-calldata/
API ID: fac2d9a1-772b-4135-928d-2482d79acc75
Provider: uniswap
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/uniswap/v1/swap
Page update time: 2026-12-03T02:49:49.595Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:49.595Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Uniswap Create swap calldata API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {
        "x-universal-router-version": {
          "type": "string",
          "description": "The version of the Universal Router to use for the swap journey. *MUST* be consistent throughout the API calls.",
          "enum": [
            "2.0",
            "2.1.1",
            "2.1.2",
            "2.2.0"
          ]
        },
        "x-permit2-disabled": {
          "type": "boolean",
          "description": "Disables the Permit2 approval flow. When set to `true`, `permitData` is returned as `null` and the header is forwarded to the routing layer for correct gas simulation against the Proxy Universal Router contract. When `false` or omitted, the standard Permit2 approval flow is used. This header is intended for integrators whose infrastructure uses a direct approval-then-swap pattern without Permit2."
        },
        "x-agent-info": {
          "type": "string",
          "description": "Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.",
          "maxLength": 1024
        }
      }
    },
    "body": {
      "description": "Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.",
      "properties": {
        "deadline": {
          "type": "number"
        },
        "enforceExactIn": {
          "type": "boolean"
        },
        "includeGasInfo": {
          "deprecated": true,
          "type": "boolean"
        },
        "permitData": {
          "allOf": [
            {
              "properties": {
                "domain": {
                  "type": "object"
                },
                "types": {
                  "type": "object"
                },
                "values": {
                  "type": "object"
                }
              },
              "type": "object"
            }
          ]
        },
        "quote": {
          "allOf": [
            {
              "not": {
                "anyOf": [
                  {
                    "required": [
                      "approvalSpender"
                    ]
                  },
                  {
                    "required": [
                      "provider"
                    ]
                  },
                  {
                    "required": [
                      "routeGraph"
                    ]
                  },
                  {
                    "required": [
                      "transactionRequest"
                    ]
                  }
                ]
              }
            }
          ],
          "anyOf": [
            {
              "allOf": [
                {
                  "not": {
                    "anyOf": [
                      {
                        "required": [
                          "routeGraph"
                        ]
                      }
                    ]
                  }
                }
              ],
              "properties": {
                "aggregatedOutputs": {
                  "items": {
                    "properties": {
                      "amount": {
                        "pattern": "^[0-9]+$",
                        "type": "string"
                      },
                      "bps": {
                        "multipleOf": 0.01,
                        "type": "number"
                      },
                      "fee": {
                        "enum": [
                          "INTEGRATOR"
                        ],
                        "type": "string"
                      },
                      "minAmount": {
                        "type": "string"
                      },
                      "recipient": {
                        "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                        "type": "string"
                      },
                      "token": {
                        "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                },
                "blockNumber": {
                  "type": "string"
                },
                "chainId": {
                  "enum": [
                    1,
                    10,
                    56,
                    130,
                    137,
                    143,
                    196,
                    324,
                    480,
                    1868,
                    4217,
                    4326,
                    4663,
                    5042,
                    8453,
                    10143,
                    42161,
                    42220,
                    43114,
                    57073,
                    59144,
                    81457,
                    7777777,
                    1301,
                    84532,
                    11155111
                  ],
                  "type": "number"
                },
                "gasFee": {
                  "type": "string"
                },
                "gasFeeQuote": {
                  "type": "string"
                },
                "gasFeeUSD": {
                  "type": "string"
                },
                "gasPrice": {
                  "type": "string"
                },
                "gasUseEstimate": {
                  "type": "string"
                },
                "input": {
                  "properties": {
                    "amount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "maximumAmount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "token": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "token"
                  ],
                  "type": "object"
                },
                "maxFeePerGas": {
                  "type": "string"
                },
                "maxPriorityFeePerGas": {
                  "type": "string"
                },
                "output": {
                  "properties": {
                    "amount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "minimumAmount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "recipient": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    },
                    "token": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "token"
                  ],
                  "type": "object"
                },
                "priceDifference": {
                  "type": "number"
                },
                "priceImpact": {
                  "type": "number"
                },
                "quoteId": {
                  "type": "string"
                },
                "route": {
                  "items": {
                    "items": {
                      "oneOf": [
                        {
                          "properties": {
                            "address": {
                              "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                              "type": "string"
                            },
                            "amountIn": {
                              "pattern": "^[0-9]+$",
                              "type": "string"
                            },
                            "amountOut": {
                              "pattern": "^[0-9]+$",
                              "type": "string"
                            },
                            "reserve0": {
                              "properties": {
                                "quotient": {
                                  "type": "string"
                                },
                                "token": {
                                  "properties": {
                                    "address": {
                                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                      "type": "string"
                                    },
                                    "buyFeeBps": {
                                      "type": "string"
                                    },
                                    "chainId": {
                                      "enum": [
                                        1,
                                        10,
                                        56,
                                        130,
                                        137,
                                        143,
                                        196,
                                        324,
                                        480,
                                        1868,
                                        4217,
                                        4326,
                                        4663,
                                        5042,
                                        8453,
                                        10143,
                                        42161,
                                        42220,
                                        43114,
                                        57073,
                                        59144,
                                        81457,
                                        7777777,
                                        1301,
                                        84532,
                                        11155111
                                      ],
                                      "type": "number"
                                    },
                                    "decimals": {
                                      "type": "string"
                                    },
                                    "sellFeeBps": {
                                      "type": "string"
                                    },
                                    "symbol": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            },
                            "reserve1": {
                              "properties": {
                                "quotient": {
                                  "type": "string"
                                },
                                "token": {
                                  "properties": {
                                    "address": {
                                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                      "type": "string"
                                    },
                                    "buyFeeBps": {
                                      "type": "string"
                                    },
                                    "chainId": {
                                      "enum": [
                                        1,
                                        10,
                                        56,
                                        130,
                                        137,
                                        143,
                                        196,
                                        324,
                                        480,
                                        1868,
                                        4217,
                                        4326,
                                        4663,
                                        5042,
                                        8453,
                                        10143,
                                        42161,
                                        42220,
                                        43114,
                                        57073,
                                        59144,
                                        81457,
                                        7777777,
                                        1301,
                                        84532,
                                        11155111
                                      ],
                                      "type": "number"
                                    },
                                    "decimals": {
                                      "type": "string"
                                    },
                                    "sellFeeBps": {
                                      "type": "string"
                                    },
                                    "symbol": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            },
                            "tokenIn": {
                              "properties": {
                                "address": {
                                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                  "type": "string"
                                },
                                "buyFeeBps": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "enum": [
                                    1,
                                    10,
                                    56,
                                    130,
                                    137,
                                    143,
                                    196,
                                    324,
                                    480,
                                    1868,
                                    4217,
                                    4326,
                                    4663,
                                    5042,
                                    8453,
                                    10143,
                                    42161,
                                    42220,
                                    43114,
                                    57073,
                                    59144,
                                    81457,
                                    7777777,
                                    1301,
                                    84532,
                                    11155111
                                  ],
                                  "type": "number"
                                },
                                "decimals": {
                                  "type": "string"
                                },
                                "sellFeeBps": {
                                  "type": "string"
                                },
                                "symbol": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "tokenOut": {
                              "properties": {
                                "address": {
                                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                  "type": "string"
                                },
                                "buyFeeBps": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "enum": [
                                    1,
                                    10,
                                    56,
                                    130,
                                    137,
                                    143,
                                    196,
                                    324,
                                    480,
                                    1868,
                                    4217,
                                    4326,
                                    4663,
                                    5042,
                                    8453,
                                    10143,
                                    42161,
                                    42220,
                                    43114,
                                    57073,
                                    59144,
                                    81457,
                                    7777777,
                                    1301,
                                    84532,
                                    11155111
                                  ],
                                  "type": "number"
                                },
                                "decimals": {
                                  "type": "string"
                                },
                                "sellFeeBps": {
                                  "type": "string"
                                },
                                "symbol": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "properties": {
                            "address": {
                              "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                              "type": "string"
                            },
                            "amountIn": {
                              "pattern": "^[0-9]+$",
                              "type": "string"
                            },
                            "amountOut": {
                              "pattern": "^[0-9]+$",
                              "type": "string"
                            },
                            "fee": {
                              "type": "string"
                            },
                            "liquidity": {
                              "type": "string"
                            },
                            "sqrtRatioX96": {
                              "type": "string"
                            },
                            "tickCurrent": {
                              "type": "string"
                            },
                            "tokenIn": {
                              "properties": {
                                "address": {
                                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                  "type": "string"
                                },
                                "buyFeeBps": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "enum": [
                                    1,
                                    10,
                                    56,
                                    130,
                                    137,
                                    143,
                                    196,
                                    324,
                                    480,
                                    1868,
                                    4217,
                                    4326,
                                    4663,
                                    5042,
                                    8453,
                                    10143,
                                    42161,
                                    42220,
                                    43114,
                                    57073,
                                    59144,
                                    81457,
                                    7777777,
                                    1301,
                                    84532,
                                    11155111
                                  ],
                                  "type": "number"
                                },
                                "decimals": {
                                  "type": "string"
                                },
                                "sellFeeBps": {
                                  "type": "string"
                                },
                                "symbol": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "tokenOut": {
                              "properties": {
                                "address": {
                                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                  "type": "string"
                                },
                                "buyFeeBps": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "enum": [
                                    1,
                                    10,
                                    56,
                                    130,
                                    137,
                                    143,
                                    196,
                                    324,
                                    480,
                                    1868,
                                    4217,
                                    4326,
                                    4663,
                                    5042,
                                    8453,
                                    10143,
                                    42161,
                                    42220,
                                    43114,
                                    57073,
                                    59144,
                                    81457,
                                    7777777,
                                    1301,
                                    84532,
                                    11155111
                                  ],
                                  "type": "number"
                                },
                                "decimals": {
                                  "type": "string"
                                },
                                "sellFeeBps": {
                                  "type": "string"
                                },
                                "symbol": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        {
                          "properties": {
                            "address": {
                              "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                              "type": "string"
                            },
                            "amountIn": {
                              "pattern": "^[0-9]+$",
                              "type": "string"
                            },
                            "amountOut": {
                              "pattern": "^[0-9]+$",
                              "type": "string"
                            },
                            "fee": {
                              "type": "string"
                            },
                            "hooks": {
                              "type": "string"
                            },
                            "liquidity": {
                              "type": "string"
                            },
                            "sqrtRatioX96": {
                              "type": "string"
                            },
                            "tickCurrent": {
                              "type": "string"
                            },
                            "tickSpacing": {
                              "type": "number"
                            },
                            "tokenIn": {
                              "properties": {
                                "address": {
                                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                  "type": "string"
                                },
                                "buyFeeBps": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "enum": [
                                    1,
                                    10,
                                    56,
                                    130,
                                    137,
                                    143,
                                    196,
                                    324,
                                    480,
                                    1868,
                                    4217,
                                    4326,
                                    4663,
                                    5042,
                                    8453,
                                    10143,
                                    42161,
                                    42220,
                                    43114,
                                    57073,
                                    59144,
                                    81457,
                                    7777777,
                                    1301,
                                    84532,
                                    11155111
                                  ],
                                  "type": "number"
                                },
                                "decimals": {
                                  "type": "string"
                                },
                                "sellFeeBps": {
                                  "type": "string"
                                },
                                "symbol": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "tokenOut": {
                              "properties": {
                                "address": {
                                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                                  "type": "string"
                                },
                                "buyFeeBps": {
                                  "type": "string"
                                },
                                "chainId": {
                                  "enum": [
                                    1,
                                    10,
                                    56,
                                    130,
                                    137,
                                    143,
                                    196,
                                    324,
                                    480,
                                    1868,
                                    4217,
                                    4326,
                                    4663,
                                    5042,
                                    8453,
                                    10143,
                                    42161,
                                    42220,
                                    43114,
                                    57073,
                                    59144,
                                    81457,
                                    7777777,
                                    1301,
                                    84532,
                                    11155111
                                  ],
                                  "type": "number"
                                },
                                "decimals": {
                                  "type": "string"
                                },
                                "sellFeeBps": {
                                  "type": "string"
                                },
                                "symbol": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "address",
                            "tokenIn",
                            "tokenOut",
                            "sqrtRatioX96",
                            "liquidity",
                            "tickCurrent",
                            "fee",
                            "tickSpacing",
                            "hooks"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "type": "array"
                  },
                  "type": "array"
                },
                "routeCandidates": {
                  "items": {
                    "properties": {
                      "quoteAmount": {
                        "type": "string"
                      },
                      "quoteGasAdjusted": {
                        "type": "string"
                      },
                      "routeString": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "routeString",
                      "quoteAmount"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "routeString": {
                  "type": "string"
                },
                "slippage": {
                  "maximum": 100,
                  "minimum": 0,
                  "pattern": "^[0-9]{0,3}\\.?[0-9]{0,2}$",
                  "type": "number"
                },
                "swapSteps": {
                  "items": false,
                  "type": "array"
                },
                "swapper": {
                  "pattern": "^0x[0-9a-fA-F]{40}$",
                  "type": "string"
                },
                "tradeType": {
                  "enum": [
                    "EXACT_INPUT",
                    "EXACT_OUTPUT"
                  ],
                  "type": "string"
                },
                "txFailureReasons": {
                  "items": {
                    "enum": [
                      "SIMULATION_ERROR",
                      "UNSUPPORTED_SIMULATION",
                      "SIMULATION_UNAVAILABLE",
                      "SLIPPAGE_TOO_LOW",
                      "TRANSFER_FROM_FAILED"
                    ],
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "required": [
                "chainId",
                "swapper",
                "input",
                "output",
                "tradeType"
              ],
              "type": "object"
            },
            {
              "properties": {
                "chainId": {
                  "enum": [
                    1,
                    10,
                    56,
                    130,
                    137,
                    143,
                    196,
                    324,
                    480,
                    1868,
                    4217,
                    4326,
                    4663,
                    5042,
                    8453,
                    10143,
                    42161,
                    42220,
                    43114,
                    57073,
                    59144,
                    81457,
                    7777777,
                    1301,
                    84532,
                    11155111
                  ],
                  "type": "number"
                },
                "gasFee": {
                  "type": "string"
                },
                "gasFeeQuote": {
                  "type": "string"
                },
                "gasFeeUSD": {
                  "type": "string"
                },
                "gasPrice": {
                  "type": "string"
                },
                "gasUseEstimate": {
                  "type": "string"
                },
                "input": {
                  "properties": {
                    "amount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "maximumAmount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "token": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "token"
                  ],
                  "type": "object"
                },
                "maxFeePerGas": {
                  "type": "string"
                },
                "maxPriorityFeePerGas": {
                  "type": "string"
                },
                "output": {
                  "properties": {
                    "amount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "minimumAmount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "recipient": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    },
                    "token": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "token"
                  ],
                  "type": "object"
                },
                "priceDifference": {
                  "type": "number"
                },
                "swapper": {
                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                  "type": "string"
                },
                "tradeType": {
                  "enum": [
                    "EXACT_INPUT",
                    "EXACT_OUTPUT"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "chainId",
                "swapper",
                "input",
                "output",
                "tradeType"
              ],
              "type": "object"
            },
            {
              "allOf": [
                {
                  "not": {
                    "anyOf": [
                      {
                        "required": [
                          "provider"
                        ]
                      },
                      {
                        "required": [
                          "approvalSpender"
                        ]
                      },
                      {
                        "required": [
                          "transactionRequest"
                        ]
                      }
                    ]
                  }
                }
              ],
              "properties": {
                "chainId": {
                  "enum": [
                    1,
                    10,
                    56,
                    130,
                    137,
                    143,
                    196,
                    324,
                    480,
                    1868,
                    4217,
                    4326,
                    4663,
                    5042,
                    8453,
                    10143,
                    42161,
                    42220,
                    43114,
                    57073,
                    59144,
                    81457,
                    7777777,
                    1301,
                    84532,
                    11155111
                  ],
                  "type": "number"
                },
                "destinationChainId": {
                  "enum": [
                    1,
                    10,
                    56,
                    130,
                    137,
                    143,
                    196,
                    324,
                    480,
                    1868,
                    4217,
                    4326,
                    4663,
                    5042,
                    8453,
                    10143,
                    42161,
                    42220,
                    43114,
                    57073,
                    59144,
                    81457,
                    7777777,
                    1301,
                    84532,
                    11155111
                  ],
                  "type": "number"
                },
                "estimatedFillTimeMs": {
                  "type": "number"
                },
                "exclusiveRelayer": {
                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                  "type": "string"
                },
                "exclusivityDeadline": {
                  "type": "number"
                },
                "fillDeadline": {
                  "type": "number"
                },
                "gasFee": {
                  "type": "string"
                },
                "gasFeeUSD": {
                  "type": "string"
                },
                "gasPrice": {
                  "type": "string"
                },
                "gasUseEstimate": {
                  "type": "string"
                },
                "input": {
                  "properties": {
                    "amount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "maximumAmount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "token": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "token"
                  ],
                  "type": "object"
                },
                "maxFeePerGas": {
                  "type": "string"
                },
                "maxPriorityFeePerGas": {
                  "type": "string"
                },
                "output": {
                  "properties": {
                    "amount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "minimumAmount": {
                      "pattern": "^[0-9]+$",
                      "type": "string"
                    },
                    "recipient": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    },
                    "token": {
                      "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "token"
                  ],
                  "type": "object"
                },
                "priceDifference": {
                  "type": "number"
                },
                "quoteId": {
                  "type": "string"
                },
                "quoteTimestamp": {
                  "type": "number"
                },
                "swapper": {
                  "pattern": "^(0x)?[0-9a-fA-F]{40}$",
                  "type": "string"
                },
                "tradeType": {
                  "enum": [
                    "EXACT_INPUT",
                    "EXACT_OUTPUT"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "chainId",
                "swapper",
                "input",
                "output",
                "tradeType"
              ],
              "type": "object"
            }
          ]
        },
        "refreshGasPrice": {
          "type": "boolean"
        },
        "safetyMode": {
          "enum": [
            "SAFE"
          ],
          "type": "string"
        },
        "signature": {
          "type": "string"
        },
        "simulateTransaction": {
          "type": "boolean"
        },
        "swapSource": {
          "enum": [
            "UNIVERSAL_ROUTER",
            "WALLET"
          ],
          "type": "string"
        },
        "urgency": {
          "oneOf": [
            {
              "enum": [
                "normal",
                "fast",
                "urgent"
              ],
              "type": "string"
            },
            {
              "properties": {
                "level": {
                  "enum": [
                    "normal",
                    "fast",
                    "urgent"
                  ],
                  "type": "string"
                },
                "overrides": {
                  "properties": {
                    "gasLimit": {
                      "type": "string"
                    },
                    "maxFeePerGas": {
                      "type": "string"
                    },
                    "maxPriorityFeePerGas": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "required": [
                "level"
              ],
              "type": "object"
            }
          ]
        }
      },
      "required": [
        "quote"
      ],
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "gasFee": {
      "type": "string"
    },
    "publicKeyId": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "signature": {
      "type": "string"
    },
    "swap": {
      "type": "object",
      "properties": {
        "chainId": {
          "type": "integer"
        },
        "data": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "gasLimit": {
          "type": "string"
        },
        "maxFeePerGas": {
          "type": "string"
        },
        "maxPriorityFeePerGas": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Recorded success 2026-10-30 (historical)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/uniswap/v1/swap' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "quote": {
    "chainId": 1,
    "gasFee": "537917653750000",
    "gasFeeQuote": "537917653750000",
    "gasUseEstimate": "250000",
    "input": {
      "amount": "1",
      "maximumAmount": "1",
      "token": "0x0000000000000000000000000000000000000000"
    },
    "maxFeePerGas": "2151670615",
    "maxPriorityFeePerGas": "150000000",
    "output": {
      "amount": "1",
      "minimumAmount": "1",
      "recipient": "0x1111111111111111111111111111111111111111",
      "token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    },
    "priceDifference": 0,
    "swapper": "0x1111111111111111111111111111111111111111",
    "tradeType": "EXACT_INPUT"
  },
  "simulateTransaction": false
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "gasFee": "537917653750000",
  "publicKeyId": "1",
  "requestId": "19c66c1c-51a0-4dab-9e71-1891b910b7f4",
  "signature": "0x67f93e0fc575c9ad327168dd4c660d72569b8c33450d251f03132fd702cb3aed8fdb03aa2d5adce93d15758370952ef0113e2e6684fb6269736057a8bc8a8e69",
  "swap": {
    "chainId": 1,
    "data": "0xd0e30db0756e69780000aa54552d",
    "from": "0x1111111111111111111111111111111111111111",
    "gasLimit": "250000",
    "maxFeePerGas": "2151670615",
    "maxPriorityFeePerGas": "150000000",
    "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "value": "0x01"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
