Aqua0
API ReferenceSwaps

Authorize a Uniswap V4 JIT liquidity injection for one swap

Returns a backend-signed EIP-712 authorization that lets a trader pull just-in-time liquidity into the Uniswap V4 pool for one specific swap, binding the exact swap and executor. Venue must be 'v4', so call /quote with venue v4 first to preview the fill.

POST
/api/swap/authorize

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/swap/authorize" \  -H "Content-Type: application/json" \  -d '{    "poolId": "string",    "chainId": "string",    "token0": "string",    "token1": "string",    "classId": "string",    "amountSpecified": "string",    "sqrtPriceLimitX96": "string"  }'
{  "venue": "v4",  "authorization": {    "swapId": "string",    "poolId": "string",    "classId": "string",    "nonce": "string",    "deadline": "string",    "executor": "string",    "signature": "string",    "ranges": [      {        "tickLower": 0,        "tickUpper": 0,        "liquidity": "string"      }    ],    "routePlan": {}  },  "hookData": "string"}
Empty