# Uniswap Create a V3 or V4 LP position API

Get Uniswap Create V3 or V4 LP position data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Uniswap, pass parameters such as chainId, existingPool, independentToken, 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/uniswap/uniswap-create-a-v3-or-v4-lp-position/
API ID: 8600d0c4-06c4-4421-b0f0-8d1f0ae99726
Provider: uniswap
Contract revision: 6
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/uniswap/lp/create
Page update time: 2026-12-03T02:49:49.034Z
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
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:49.034Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Uniswap Create a V3 or V4 LP position API

Create a V3 or V4 LP position with the Uniswap API. Provide walletAddress in body, chainId in body, protocol in body, independentToken in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Market reference and account inspection**: Keep market, asset and account identities distinct when interpreting records.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `adjustedMaxPrice` | Returned adjusted max price field |
| `adjustedMinPrice` | Returned adjusted min price field |
| `create.data` | Business payload |
| `create.chainId` | Chain identifier |
| `create.from` | Returned from field |
| `create.to` | Returned to field |
| `create.value` | Returned value field |
| `requestId` | Request identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Uniswap Create a V3 or V4 LP position 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-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": [
        {
          "oneOf": [
            {
              "required": [
                "existingPool"
              ]
            },
            {
              "required": [
                "newPool"
              ]
            }
          ]
        },
        {
          "oneOf": [
            {
              "required": [
                "priceBounds"
              ]
            },
            {
              "required": [
                "tickBounds"
              ]
            }
          ]
        }
      ],
      "description": "Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.",
      "properties": {
        "batchPermitData": {
          "allOf": [
            {
              "properties": {
                "domain": {
                  "type": "object"
                },
                "types": {
                  "type": "object"
                },
                "values": {
                  "type": "object"
                }
              },
              "type": [
                "object",
                "null"
              ]
            }
          ]
        },
        "chainId": {
          "enum": [
            1,
            10,
            56,
            130,
            137,
            143,
            196,
            324,
            480,
            1868,
            4217,
            4326,
            4663,
            5042,
            8453,
            10143,
            42161,
            42220,
            43114,
            57073,
            59144,
            81457,
            99901,
            7777777,
            1301,
            84532,
            11155111
          ],
          "type": "number"
        },
        "deadline": {
          "type": "integer"
        },
        "dependentToken": {
          "allOf": [
            {
              "properties": {
                "amount": {
                  "type": "string"
                },
                "tokenAddress": {
                  "pattern": "^0x[0-9a-fA-F]{40}$",
                  "type": "string"
                }
              },
              "required": [
                "tokenAddress",
                "amount"
              ],
              "type": "object"
            }
          ]
        },
        "existingPool": {
          "allOf": [
            {
              "properties": {
                "poolReference": {
                  "type": "string"
                },
                "token0Address": {
                  "pattern": "^0x[0-9a-fA-F]{40}$",
                  "type": "string"
                },
                "token1Address": {
                  "pattern": "^0x[0-9a-fA-F]{40}$",
                  "type": "string"
                }
              },
              "required": [
                "token0Address",
                "token1Address",
                "poolReference"
              ],
              "type": "object"
            }
          ]
        },
        "independentToken": {
          "allOf": [
            {
              "properties": {
                "amount": {
                  "type": "string"
                },
                "tokenAddress": {
                  "pattern": "^0x[0-9a-fA-F]{40}$",
                  "type": "string"
                }
              },
              "required": [
                "tokenAddress",
                "amount"
              ],
              "type": "object"
            }
          ]
        },
        "nativeTokenBalance": {
          "type": "string"
        },
        "newPool": {
          "allOf": [
            {
              "properties": {
                "fee": {
                  "type": "integer"
                },
                "hooks": {
                  "allOf": [
                    {
                      "pattern": "^0x[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  ]
                },
                "initialPrice": {
                  "type": "string"
                },
                "tickSpacing": {
                  "type": "integer"
                },
                "token0Address": {
                  "pattern": "^0x[0-9a-fA-F]{40}$",
                  "type": "string"
                },
                "token1Address": {
                  "pattern": "^0x[0-9a-fA-F]{40}$",
                  "type": "string"
                }
              },
              "required": [
                "token0Address",
                "token1Address",
                "fee",
                "tickSpacing",
                "initialPrice"
              ],
              "type": "object"
            }
          ]
        },
        "priceBounds": {
          "allOf": [
            {
              "properties": {
                "maxPrice": {
                  "type": "string"
                },
                "minPrice": {
                  "type": "string"
                }
              },
              "required": [
                "minPrice",
                "maxPrice"
              ],
              "type": "object"
            }
          ]
        },
        "protocol": {
          "enum": [
            "V3",
            "V4"
          ],
          "type": "string"
        },
        "signature": {
          "type": "string"
        },
        "simulateTransaction": {
          "type": "boolean"
        },
        "slippageTolerance": {
          "type": "number"
        },
        "tickBounds": {
          "allOf": [
            {
              "properties": {
                "tickLower": {
                  "type": "integer"
                },
                "tickUpper": {
                  "type": "integer"
                }
              },
              "required": [
                "tickLower",
                "tickUpper"
              ],
              "type": "object"
            }
          ]
        },
        "urgency": {
          "enum": [
            "NORMAL",
            "FAST",
            "URGENT"
          ],
          "type": "string"
        },
        "walletAddress": {
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        }
      },
      "required": [
        "walletAddress",
        "chainId",
        "protocol",
        "independentToken"
      ],
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "adjustedMaxPrice": {
      "type": "string"
    },
    "adjustedMinPrice": {
      "type": "string"
    },
    "create": {
      "type": "object",
      "properties": {
        "chainId": {
          "type": "integer"
        },
        "data": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "requestId": {
      "type": "string"
    },
    "tickLower": {
      "type": "integer"
    },
    "tickUpper": {
      "type": "integer"
    },
    "token0": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "string"
        },
        "tokenAddress": {
          "type": "string"
        }
      }
    },
    "token1": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "string"
        },
        "tokenAddress": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Recorded success 2026-10-30 (historical)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/uniswap/lp/create' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "chainId": 1,
  "existingPool": {
    "poolReference": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
    "token0Address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "token1Address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
  },
  "independentToken": {
    "amount": "1000000000000",
    "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
  },
  "protocol": "V3",
  "simulateTransaction": false,
  "tickBounds": {
    "tickLower": 198680,
    "tickUpper": 199880
  },
  "walletAddress": "0x0000000000000000000000000000000000000001"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "adjustedMaxPrice": "478899186.497490725040209042147410307798882827",
  "adjustedMinPrice": "424748023.94245869427363911544176984350218397",
  "create": {
    "chainId": 1,
    "data": "0x88316456000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000308180000000000000000000000000000000000000000000000000000000000030cc8000000000000000000000000000000000000000000000000000000000000087d000000000000000000000000000000000000000000000000000000e8d324ce1d00000000000000000000000000000000000000000000000000000000000004ee00000000000000000000000000000000000000000000000000000086aea6ac2f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000006ae4153e",
    "from": "0x0000000000000000000000000000000000000001",
    "to": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
    "value": "0x00"
  },
  "requestId": "95edb23f-d78b-4a7d-8c92-3d01b4d40865",
  "tickLower": 198680,
  "tickUpper": 199880,
  "token0": {
    "amount": "2173",
    "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
  },
  "token1": {
    "amount": "1000000000000",
    "tokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
  }
}
```

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

## Common questions
### Which inputs identify this request?
Provide walletAddress in body (string); chainId in body (number); protocol in body (string); independentToken in body (documented JSON type). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

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