# Uniswap Check swap approvals API

Get Uniswap Check swap approvals data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Uniswap, pass parameters such as amount, chainId, token, and retrieve structured data including business payload, chain identifier, returned from field, returned to field, and returned value field for market reference and account inspection, and integration reference.

Documentation: https://openany.si/market/apis/uniswap/uniswap-check-swap-approvals/
API ID: 49b15c80-7b97-4628-b980-d6cbd0762a5c
Provider: uniswap
Contract revision: 5
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/uniswap/v1/check_approval
Page update time: 2026-12-03T02:49:48.910Z
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:48.910Z. 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 Check swap approvals 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-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": {
      "allOf": [
        {
          "not": {
            "anyOf": [
              {
                "required": [
                  "quote"
                ]
              }
            ]
          }
        }
      ],
      "description": "Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.",
      "properties": {
        "amount": {
          "pattern": "^[0-9]+$",
          "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"
        },
        "includeGasInfo": {
          "type": "boolean"
        },
        "token": {
          "pattern": "^(0x)?[0-9a-fA-F]{40}$",
          "type": "string"
        },
        "tokenOut": {
          "pattern": "^(0x)?[0-9a-fA-F]{40}$",
          "type": "string"
        },
        "tokenOutChainId": {
          "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"
        },
        "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"
            }
          ]
        },
        "walletAddress": {
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        }
      },
      "required": [
        "walletAddress",
        "token",
        "amount",
        "chainId"
      ],
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "approval": {
      "type": "object",
      "properties": {
        "chainId": {
          "type": "integer"
        },
        "data": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "cancel": {
      "type": "null"
    },
    "requestId": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: check_approval
```bash
curl \
  'https://api.openany.si/v1/agent-apis/uniswap/v1/check_approval' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "amount": "1000000000",
  "chainId": 1,
  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "walletAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "approval": {
    "chainId": 1,
    "data": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
    "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "value": "0x00"
  },
  "cancel": null,
  "requestId": "25df056b902224e6064f1d9b2f8056b5"
}
```

## 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
