Overview
This guide will help you migrate fromlite-api.jup.ag to api.jup.ag. The migration is straightforward - only the base URL and API key requirement changes.
What Changed?
We will be stopping support for API requests with no API key, hence you are required to migrate toapi.jup.ag and use with an API key.
| Before (Deprecated) | After (Current) |
|---|---|
https://lite-api.jup.ag/... | https://api.jup.ag/... |
| No API key required | API key required (free tier available) |
| Free tier | Free tier (with API key) |
Migration Steps
Step 1: Generate API Key
- Visit portal.jup.ag
- Connect via email
- Generate an API key (free tier available)
- Copy your API key
Step 2: Update Your Base URL
Replace all instances oflite-api.jup.ag with api.jup.ag:
Step 3: Add API Key Header
To use your API key, pass in via header asx-api-key:
Migration Checklist
- Generate API key from portal.jup.ag
- Update all
lite-api.jup.agURLs toapi.jup.ag - Add
x-api-keyheader to all API requests - Test API calls with new endpoint
- Update environment variables/config files
- Update documentation/comments in code
Endpoint Mapping
All endpoints remain the same, only the base URL changes:| Service | Old Endpoint | New Endpoint |
|---|---|---|
| Ultra API | lite-api.jup.ag/ultra/v1/... | api.jup.ag/ultra/v1/... |
| Swap API | lite-api.jup.ag/swap/v1/... | api.jup.ag/swap/v1/... |
| Price API | lite-api.jup.ag/price/v2/... | api.jup.ag/price/v2/... |
| Tokens API | lite-api.jup.ag/tokens/v1/... | api.jup.ag/tokens/v1/... |
| Trigger API | lite-api.jup.ag/trigger/v1/... | api.jup.ag/trigger/v1/... |
| Recurring API | lite-api.jup.ag/recurring/v1/... | api.jup.ag/recurring/v1/... |
| Send API | lite-api.jup.ag/send/v1/... | api.jup.ag/send/v1/... |
| Studio API | lite-api.jup.ag/studio/v1/... | api.jup.ag/studio/v1/... |
| Lend API | lite-api.jup.ag/lend/v1/... | api.jup.ag/lend/v1/... |
Common Issues
401 Unauthorized
401 Unauthorized
Rate Limit Errors
Rate Limit Errors
Problem: Hitting rate limits
Solution: Free tier provides 60 requests per minute. Consider upgrading to Pro tier for higher limits. Refer to Rate Limit for more details.
Solution: Free tier provides 60 requests per minute. Consider upgrading to Pro tier for higher limits. Refer to Rate Limit for more details.
