jupiter-swap-migration
What it does
This guide shows how to update existing Jupiter swap code from the old Metis v1 or Ultra endpoints to the unified Swap API v2. It explains the new base address and the endpoint changes, for developers whose swap code has stopped working or needs upgrading.
When to use it
- βWhen your app still calls the old Jupiter v1 quote or swap-instructions endpoints.
- βWhen your Jupiter swap stopped working after an API change.
- βWhen you need to move from the Ultra endpoints to the newer order or build endpoints.
Skill link
https://github.com/internet-court/internet-court-skill/blob/main/vendored/jupiter/jupiter-swap-migration/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMy Jupiter swap stopped working because it calls the old v1 quote endpoint. How do I move it to v2?β
5 new skills a week. 1 minute to read.
How it works
The agent finds the old calls in your code, updates the base address, and switches to the unified build or order endpoint. The skill lists the renamed parameters and response changes to check.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Jupiter Swap Migration Guide
Migrate existing Jupiter swap integrations from Metis (v1) or Ultra to the unified Swap API v2.
Target Base URL: https://api.jup.ag/swap/v2
Auth: x-api-key from developers.jup.ag (unchanged)
Use/Do Not Use
Use when:
- Migrating code that calls
api.jup.ag/swap/v1/quote,api.jup.ag/swap/v1/swap-instructions, orultra-api.jup.ag. - Updating Jupiter swap endpoints to v2.
- Switching from Metis two-step flow to the unified
/buildor/orderendpoint.
Do not use when:
- Building a new Jupiter integration from scratch (use
integrating-jupiterskill instead). - Working with non-swap Jupiter APIs (Lend, Trigger, Recurring, etc.).
Triggers: ultra, metis, ultra swap, ultra api, ultra-api.jup.ag, /ultra/v1, swap/v1, swap-instructions, migrate swap, ultra migration, metis migration, swap v1 to v2, v1 to v2, upgrade jupiter, swap-instructions deprecated, deprecated swap, old jupiter api, swap upgrade, update swap api, quote endpoint deprecated, swap stopped working, swap broken, ExactOut removed, swapMode removed, userPublicKey, parameter rename, addressLookupTable, response format changed
Migration Paths
| Source | Target | Effort | When to choose |
|---|---|---|---|
Ultra β /order |
GET /swap/v2/order + POST /swap/v2/execute |
Minimal (URL change only) | Default for Ultra users |
Metis β /build |
GET /swap/v2/build |
Moderate (parameter + response mapping) | Need transaction composability |
Metis β /order |
GET /swap/v2/order + POST /swap/v2/execute |
Moderate (flow change) | Don't need tx modification, want managed execution |
Path Details
Each path has a dedicated example with before/after code, parameter mappings, and response changes:
- Path 1: Ultra β
/orderβ Minimal migration, base URL change only - Path 2: Metis β
/buildβ Consolidates 2 calls into 1, parameter and response mapping - Path 3: Metis β
/orderβ Flow change to managed execution with multi-router competition
Post-Migration Checklist
- URL audit: Search codebase for
ultra-api.jup.ag,/ultra/v1/,/swap/v1/quote,/swap/v1/swap-instructionsβ all should be replaced - Parameter rename:
userPublicKeyβtaker(for/buildpath) swapModeremoval: V2 only supportsExactIn. If usingExactOut, redesign the flow β this mode is no longer availableslippageBpsdefault:/builddefaults to 50 bps if omitted. For/order, verify the default if your integration relies on a specific value- Response field names: Verify your code uses
inputAmountResult/outputAmountResultfor the/executeresponse (the canonical v2 field names) - ALT handling: If using
/build, switch fromaddressLookupTableAddresses(array) toaddressesByLookupTableAddress(object) β remove RPC ALT resolution code - Fee event parsing: V2 instructions don't emit fee events β update any transaction parser that depends on them
- Route plan format: If parsing route plans, use
bpsfield (canonical) instead ofpercent - Error codes: Update error handling to match Swap v2 error codes
- Test: Run end-to-end swap on devnet/mainnet with small amount to verify
Sunset
Remove this skill once Jupiter decommissions the v1 (/swap/v1) endpoints and the Ultra (ultra-api.jup.ag) domain. At that point all integrations will already be on v2.
Review by: 2026-09-01 β check if v1/Ultra endpoints have been decommissioned.
References
Migration is split into three profile-targeted guides (the old single migration page no longer exists):
FAQ
Is this guide for a brand-new Jupiter integration?
No. For new code, the skill sends you to the general Jupiter integration guide.
Does the API key change during migration?
No. The skill says the x-api-key header stays the same.
What parts of the old code are most likely to break?
Renamed parameters, removed options such as ExactOut and swapMode, and changed response formats.
Details
Original description by the author
Migration guide from Jupiter Metis (v1) or Ultra to Swap API v2. Use when migrating existing Jupiter swap integrations, updating base URLs, or transitioning from quote+swap-instructions to the unified build endpoint.
Popularity
- GitHub stars
- 7.0k
- Ranking position
- #13635
- License
- β
- Updated
- 10/26/2026
Comments
- β¦
More skills from this repository
internet-court
7.0kHelps your agent pay, hire, or deal safely with another AI agent or paid service, and points it to the right specialized guide.
genlayer-erc7710-connector
7.0kHelps your agent connect an AI review result to a permission system, so a bad review can limit or cancel an agent's permissions.
genlayer-intelligent-contracts
7.0kHelps your agent define the rules, evidence and outputs of an AI judge that checks whether another agent followed its mandate.
x402-erc7710
7.0kHelps your agent pay for web services one request at a time, and set up ongoing spending that stays within a permission budget.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.