---
seo:
  description: >-
    Generated from the zod schemas and the operation registry of
    @invictus/contracts. Token amounts are base units with the token decimals;
    prices, USD and…
sidebar:
  label: Overview
title: 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.

Version 0.1.0

## Market

Pools, tokens, quotes and chain status: the same answer for everyone, read from stored data.

- [`GET /v1/pools`](/api/market/list-pools) — The Discover list.
- [`GET /v1/pools/facets`](/api/market/get-pool-facets) — Stored counts per filter choice.
- [`GET /v1/search`](/api/market/search-pools) — Pools by pair symbols or address.
- [`GET /v1/tokens`](/api/market/list-tokens) — The token registry of one chain.
- [`GET /v1/tokens/{chain}/{address}`](/api/market/get-token) — One token by its address.
- [`GET /v1/network`](/api/market/get-network-status) — Chain prices, gas and provider health.
- [`GET /v1/announcements`](/api/market/list-announcements) — Current updates and banners.
- [`GET /v1/rates`](/api/market/get-exchange-rates) — What one US dollar is worth.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}`](/api/market/get-pool) — One pool.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/candles`](/api/market/list-pool-candles) — A page of candles.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/depth`](/api/market/get-pool-depth) — Liquidity by price bin.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/analytics`](/api/market/get-pool-analytics) — Daily fees and volume.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/stats`](/api/market/get-pool-stats) — Trading by window.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/range-estimate`](/api/market/estimate-pool-range) — A range over past data.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/zap-quote`](/api/market/quote-zap) — What a deposit would do now.
- [`GET /v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/swap-quote`](/api/market/quote-swap) — What a swap would do now.

## Live

The live stream of pool and account changes, as a WebSocket.

- [`GET /v1/live`](/api/live/stream-live-events) — WebSocket of the subscribed topics.

## Account

Sessions, the signed-in account, consents, step-ups, settings and handles.

- [`POST /v1/session`](/api/account/create-session) — Exchange a verified Privy token for a revocable session cookie.
- [`DELETE /v1/session`](/api/account/delete-session) — End this session.
- [`GET /v1/me`](/api/account/get-me) — The signed-in account.
- [`POST /v1/me/identities`](/api/account/sync-identities) — Re-read linked login methods from Privy.
- [`POST /v1/me/consents`](/api/account/accept-consent) — Accept one version of a consent text.
- [`GET /v1/me/sessions`](/api/account/list-sessions) — Logged-in devices.
- [`DELETE /v1/me/sessions`](/api/account/end-other-sessions) — End every other session.
- [`DELETE /v1/me/sessions/{id}`](/api/account/revoke-session) — End one session.
- [`POST /v1/me/step-up`](/api/account/start-step-up) — A one-time challenge bound to an action.
- [`POST /v1/me/step-up/{id}`](/api/account/finish-step-up) — Answer a challenge for a single-use proof.
- [`GET /v1/me/settings`](/api/account/get-settings) — Settings with defaults and bounds.
- [`PATCH /v1/me/settings`](/api/account/update-settings) — Change settings by revision.
- [`GET /v1/me/profile`](/api/account/get-profile) — The username.
- [`GET /v1/me/handles/check`](/api/account/check-handle) — What a claim would meet now.
- [`POST /v1/me/profile/username`](/api/account/claim-username) — Claim a username, first come, first served.

## Wallets

The account's wallets, what they hold and what may spend from them.

- [`GET /v1/me/wallets`](/api/wallets/list-wallets) — The wallets and what each holds.
- [`POST /v1/me/wallets`](/api/wallets/create-wallet) — Register a wallet made or imported through Privy.
- [`PATCH /v1/me/wallets/{id}`](/api/wallets/rename-wallet) — Rename a wallet.
- [`DELETE /v1/me/wallets/{id}`](/api/wallets/remove-wallet) — Stop showing a wallet; its history stays.
- [`GET /v1/me/wallets/{id}/approvals`](/api/wallets/list-approvals) — What may spend this wallet.

## Portfolio

Open positions and the results of the portfolio.

- [`GET /v1/me/positions`](/api/portfolio/list-positions) — The open positions.
- [`GET /v1/me/positions/{id}/replay`](/api/portfolio/get-position-replay) — A closed position replayed.
- [`GET /v1/me/portfolio/summary`](/api/portfolio/get-portfolio-summary) — The portfolio summary.
- [`GET /v1/me/portfolio/performance`](/api/portfolio/get-portfolio-performance) — Results of the period.
- [`GET /v1/me/portfolio/history`](/api/portfolio/list-portfolio-history) — A further page of results.
- [`GET /v1/me/portfolio/calendar`](/api/portfolio/get-portfolio-calendar) — Results by day of a month.

## Rewards

Points, tiers, referrals, the leaderboard and claims.

- [`GET /v1/me/rewards`](/api/rewards/get-rewards) — The rewards summary.
- [`GET /v1/me/rewards/referred`](/api/rewards/list-referred) — Referred users.
- [`GET /v1/me/rewards/claims`](/api/rewards/list-claims) — Claims, newest first.
- [`POST /v1/me/rewards/claims`](/api/rewards/create-claim) — Claim the whole claimable amount.
- [`GET /v1/me/rewards/leaderboard`](/api/rewards/list-leaderboard) — The stored ranking.
- [`POST /v1/me/rewards/code`](/api/rewards/claim-referral-code) — Claim a referral code, first come, first served.

## Operations

Transactions in two phases: a review nothing signs, then one confirmation and the signed steps.

- [`POST /v1/operations`](/api/operations/submit-operation) — Build, simulate and review an operation. Nothing is signable yet.
- [`GET /v1/operations`](/api/operations/list-operations) — Operations, newest first.
- [`GET /v1/operations/{id}`](/api/operations/get-operation) — One operation; polled while open.
- [`DELETE /v1/operations/{id}`](/api/operations/abandon-operation) — Close a review that was never signed.
- [`POST /v1/operations/{id}/confirm`](/api/operations/confirm-operation) — The one confirmation: rebuild, hold the wallet, answer what to sign by when.
- [`POST /v1/operations/{id}/transactions/{index}`](/api/operations/submit-transaction) — Hand over one signed step, or the hash a linked wallet sent.
- [`POST /v1/operations/{id}/attempts`](/api/operations/replace-transaction) — Speed up or cancel a stuck step with the same nonce.

## Alerts

Alert rules and the inbox their notifications land in.

- [`GET /v1/me/alerts`](/api/alerts/list-alert-rules) — The alert rules.
- [`POST /v1/me/alerts`](/api/alerts/create-alert-rule) — Create an alert rule.
- [`PATCH /v1/me/alerts/{id}`](/api/alerts/update-alert-rule) — Change an alert rule by revision.
- [`DELETE /v1/me/alerts/{id}`](/api/alerts/delete-alert-rule) — Delete an alert rule; its notifications stay.
- [`GET /v1/me/inbox`](/api/alerts/list-inbox) — Notifications, newest first.
- [`PATCH /v1/me/inbox`](/api/alerts/mark-inbox-read) — Mark notifications read.

## Telegram

Messages the Telegram app pulls and acknowledges, for the app's service credential on the internal listener.

- [`POST /v1/me/telegram/link-code`](/api/telegram/create-telegram-link-code) — A one-time code that links a Telegram chat.
