Overview
J7Tracker HTTP API — deploy, sell and buy tokens.
Same flows as the app, over HTTP. One route, POST {base}/submit, with a JSON body whose type picks the action and whose mode picks the launchpad.
Base URL
Pick the region closest to you. Every base ends in /deploy.
| Region | Base |
|---|---|
| NA East | https://tx-nyc.j7tracker.io/deploy |
| NA West | https://tx-lax.j7tracker.io/deploy |
| Europe | https://tx-fra.j7tracker.io/deploy |
| Asia | https://tx-sgp.j7tracker.io/deploy |
The old nyc / lax / eu / sgp hosts are retired for the deploy API. GET /ping on any base returns latency for region selection.
sniper_wallets and mode: "ansem" requests must go to NA East.
Auth
Authorization: Bearer <jwt>Or put the same JWT in the body as session_id. Wallet signing uses an encrypted api_key from the app — see API keys.
Refreshing the JWT from a server
A JWT lasts 12 hours. A server or script can get a new one for its own account without logging in again:
POST https://core.j7tracker.io/api/auth/refresh
Origin: https://j7tracker.io
X-J7-Auth: 1
Cookie: __Host-j7_rt=<refresh token>Sending Origin: https://j7tracker.io from your own server or script is allowed, and required, on this route. The check exists to stop other websites from using a logged-in browser's cookies. It is not a restriction on server-side use of your own account, and J7Tracker permits it.
- The value must be exactly
https://j7tracker.io— scheme included, no trailing slash.X-J7-Auth: 1is required too. - The refresh token is the
__Host-j7_rtcookie your login set oncore.j7tracker.io. It lasts 30 days, restarted by every refresh. - The response is
{ "success": true, "token": "<jwt>", "username": "…", "userId": 1, "expiresAt": 1794600000000 }. The same JWT is also set as the__Secure-j7_atcookie. - The refresh token rotates. A refresh answers with a new
__Host-j7_rtinSet-Cookie. Store it and always send the newest one. An older, retired token is treated as stolen: the session ends (401,reason: "reused") and its JWTs stop working. - Give your script a login of its own. A session shared with an open browser tab rotates under both, and sooner or later one of them sends a retired token and the session ends for both.
- Treat the refresh token like your password. Anyone holding it can act as your account.
- Limit: 30 refreshes per minute per IP. Once every few hours is plenty.
| Status | Body | Meaning |
|---|---|---|
| 403 | origin not allowed | Origin is missing or not exactly https://j7tracker.io |
| 403 | missing auth header | No X-J7-Auth: 1 |
| 401 | reason: missing / expired / revoked / reused | No usable refresh token. Log in again |
| 503 | — | Temporary. Keep your current JWT and retry |
Origin is only needed on /api/auth/…. Every other route here takes the JWT alone.
Endpoints
| Method | Path | type | Purpose |
|---|---|---|---|
| POST | /submit | create_token | Deploy a token |
| POST | /submit | sell_token | Sell a % of a wallet's balance |
| POST | /submit | buy_token | Buy with a SOL amount |
| POST | /submit | bundle | Bundle 1–4 buys / sells atomically |
| GET | /ping | — | Returns ok. Call it every 15–30 s to keep the TLS path warm |
Quote-pair lists live on the same hosts under /token/… — see Pair registries.
Requests
- Send the JSON as
Content-Type: text/plain;charset=UTF-8to skip the CORS preflight (browsers / extensions).application/jsonworks too. usernameis taken from the JWT; anything in the body is overwritten.- A response arrives within 30 s (
stroid~45 s), otherwise 504 with an optionallast_status. - Errors are
{ "type": "<action>_error", "error": "…" }. The HTTP layer may also return 401 (bad JWT) or 400 (badtype).