INVICTUS API
Generated from the zod schemas and the operation registry of @invictus/contracts. Token amounts are base units with the token decimals; prices, USD and percents are decimal text; a value carries its state (exact, stale, provisional, disputed, unavailable). Errors are RFC 9457 problem details.
Market
Pools, tokens, quotes and chain status: the same answer for everyone, read from stored data.
- GETThe Discover list.
/v1/pools - GETStored counts per filter choice.
/v1/pools/facets - GETPools by pair symbols or address.
/v1/search - GETThe token registry of one chain.
/v1/tokens - GETOne token by its address.
/v1/tokens/{chain}/{address} - GETChain prices, gas and provider health.
/v1/network - GETCurrent updates and banners.
/v1/announcements - GETWhat one US dollar is worth.
/v1/rates - GETOne pool.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey} - GETA page of candles.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/candles - GETLiquidity by price bin.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/depth - GETDaily fees and volume.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/analytics - GETTrading by window.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/stats - GETA range over past data.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/range-estimate - GETWhat a deposit would do now.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/zap-quote - GETWhat a swap would do now.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/swap-quote
Live
The live stream of pool and account changes, as a WebSocket.
Account
Sessions, the signed-in account, consents, step-ups, settings and handles.
- POSTExchange a verified Privy token for a revocable session cookie.
/v1/session - DELETEEnd this session.
/v1/session - GETThe signed-in account.
/v1/me - POSTRe-read linked login methods from Privy.
/v1/me/identities - POSTAccept one version of a consent text.
/v1/me/consents - GETLogged-in devices.
/v1/me/sessions - DELETEEnd every other session.
/v1/me/sessions - DELETEEnd one session.
/v1/me/sessions/{id} - POSTA one-time challenge bound to an action.
/v1/me/step-up - POSTAnswer a challenge for a single-use proof.
/v1/me/step-up/{id} - GETSettings with defaults and bounds.
/v1/me/settings - PATCHChange settings by revision.
/v1/me/settings - GETThe username.
/v1/me/profile - GETWhat a claim would meet now.
/v1/me/handles/check - POSTClaim a username, first come, first served.
/v1/me/profile/username
Wallets
The account’s wallets, what they hold and what may spend from them.
- GETThe wallets and what each holds.
/v1/me/wallets - POSTRegister a wallet made or imported through Privy.
/v1/me/wallets - PATCHRename a wallet.
/v1/me/wallets/{id} - DELETEStop showing a wallet; its history stays.
/v1/me/wallets/{id} - GETWhat may spend this wallet.
/v1/me/wallets/{id}/approvals
Portfolio
Open positions and the results of the portfolio.
- GETThe open positions.
/v1/me/positions - GETA closed position replayed.
/v1/me/positions/{id}/replay - GETThe portfolio summary.
/v1/me/portfolio/summary - GETResults of the period.
/v1/me/portfolio/performance - GETA further page of results.
/v1/me/portfolio/history - GETResults by day of a month.
/v1/me/portfolio/calendar
Rewards
Points, tiers, referrals, the leaderboard and claims.
- GETThe rewards summary.
/v1/me/rewards - GETReferred users.
/v1/me/rewards/referred - GETClaims, newest first.
/v1/me/rewards/claims - POSTClaim the whole claimable amount.
/v1/me/rewards/claims - GETThe stored ranking.
/v1/me/rewards/leaderboard - POSTClaim a referral code, first come, first served.
/v1/me/rewards/code
Operations
Transactions in two phases: a review nothing signs, then one confirmation and the signed steps.
- POSTBuild, simulate and review an operation. Nothing is signable yet.
/v1/operations - GETOperations, newest first.
/v1/operations - GETOne operation; polled while open.
/v1/operations/{id} - DELETEClose a review that was never signed.
/v1/operations/{id} - POSTThe one confirmation: rebuild, hold the wallet, answer what to sign by when.
/v1/operations/{id}/confirm - POSTHand over one signed step, or the hash a linked wallet sent.
/v1/operations/{id}/transactions/{index} - POSTSpeed up or cancel a stuck step with the same nonce.
/v1/operations/{id}/attempts
Alerts
Alert rules and the inbox their notifications land in.
- GETThe alert rules.
/v1/me/alerts - POSTCreate an alert rule.
/v1/me/alerts - PATCHChange an alert rule by revision.
/v1/me/alerts/{id} - DELETEDelete an alert rule; its notifications stay.
/v1/me/alerts/{id} - GETNotifications, newest first.
/v1/me/inbox - PATCHMark notifications read.
/v1/me/inbox
Telegram
Messages the Telegram app pulls and acknowledges, for the app’s service credential on the internal listener.
