j7tracker

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.

RegionBase
NA Easthttps://tx-nyc.j7tracker.io/deploy
NA Westhttps://tx-lax.j7tracker.io/deploy
Europehttps://tx-fra.j7tracker.io/deploy
Asiahttps://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: 1 is required too.
  • The refresh token is the __Host-j7_rt cookie your login set on core.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_at cookie.
  • The refresh token rotates. A refresh answers with a new __Host-j7_rt in Set-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.
StatusBodyMeaning
403origin not allowedOrigin is missing or not exactly https://j7tracker.io
403missing auth headerNo X-J7-Auth: 1
401reason: missing / expired / revoked / reusedNo 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

MethodPathtypePurpose
POST/submitcreate_tokenDeploy a token
POST/submitsell_tokenSell a % of a wallet's balance
POST/submitbuy_tokenBuy with a SOL amount
POST/submitbundleBundle 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-8 to skip the CORS preflight (browsers / extensions). application/json works too.
  • username is taken from the JWT; anything in the body is overwritten.
  • A response arrives within 30 s (stroid ~45 s), otherwise 504 with an optional last_status.
  • Errors are { "type": "<action>_error", "error": "…" }. The HTTP layer may also return 401 (bad JWT) or 400 (bad type).

On this page