{ "opencollection": "1.0.0", "info": { "name": "Token Trading Approval Plan API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "items": [ { "info": { "name": "Plan", "type": "folder" }, "items": [ { "info": { "name": "Create an execution plan", "type": "http" }, "http": { "method": "POST", "url": "https://trade-api.gateway.uniswap.org/v1/plan", "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "docs": "Creates a multi-step execution plan for chained transactions. The plan breaks down complex multi-chain or multi-transaction flows into sequential steps that can be executed by the client. Each step includes the method (transaction, message signature, or batch calls), payload, and current status. The response includes the current step index to track progress through the plan." }, { "info": { "name": "Get an execution plan", "type": "http" }, "http": { "method": "GET", "url": "https://trade-api.gateway.uniswap.org/v1/plan/:planId", "params": [ { "name": "planId", "value": "", "type": "path", "description": "The unique identifier of the plan to retrieve." }, { "name": "forceRefresh", "value": "", "type": "query", "description": "Whether to force refresh the plan status. Defaults to false. Completed plans cannot be refreshed." } ], "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "docs": "Retrieves an existing execution plan by its ID. Returns the full plan with current status and all steps. If forceRefresh is set to true, the plan will be refreshed to check for any updates to step statuses. Note: Completed plans cannot be refreshed." }, { "info": { "name": "Update an existing plan with step proofs", "type": "http" }, "http": { "method": "PATCH", "url": "https://trade-api.gateway.uniswap.org/v1/plan/:planId", "params": [ { "name": "planId", "value": "", "type": "path", "description": "The unique identifier of the plan to update." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "x-api-key", "value": "{{x-api-key}}", "placement": "header" } }, "docs": "Updates an existing execution plan by submitting proof of completed plan steps (transaction hashes or signatures). The endpoint retrieves the existing plan, attaches proofs to specified steps, verifies the proofs, and potentially regenerates remaining steps if needed. Returns the full updated plan with current status. Note: Order IDs are not accepted in requests; they are system-generated after receiving a signature." } ] } ], "bundled": true }