TriportRPC

Console API

The API behind the Triport dashboard — sign-in and sessions, API-key management, billing and invoices, and the referral program — for automating anything you can do in the console UI.

Method / Endpointhttps://triport.io/v1/… (per endpoint)
Network— (account-level)
AuthenticationConsole session / account credentials — see session model
Required scope
Tier / rate limitAccount-level; not metered against chain RPS budgets

What this surface is

Everything the Triport console does goes through this API, so you can script it: create and rotate keys from CI, pull invoices into accounting, or wire referral stats into your own dashboards. It is account-level — distinct from the chain data planes (/sol, /eth, /polygon), which use API keys.

Endpoint groups

  • Auth — email and wallet sign-in flows, sessions, session model, me.
  • Keys — create, list, rotate, revoke; per-key endpoints and usage.
  • Billing — balance, invoices, in-app transactions, rails, event streams.
  • Referrals — codes, invitees, rewards, payouts, and admin operations.

The full endpoint list is below.

Billing 12

GET Balance SSE event stream
A Server-Sent Events stream that pushes your account's authoritative balance on connect and on every credit or debit.
POST Build in-app transaction
Build the unsigned Solana transaction that settles an in-app invoice, ready for the customer's wallet to sign and submit.
POST Cancel an invoice
Cancels one of your own pending invoices, transitioning it from pending to cancelled.
POST Create an invoice
Open a single-rail payment invoice for the signed-in console user — one invoice maps to exactly one channel, one rail, and one deposit address.
GET Get balance
Returns the authenticated user's current account balance, in micro-USD, along with its lock state.
GET Get invoice
Fetch a single invoice you own, including its payment address, QR payment URI, and how much has been received so far.
GET Invoice SSE event stream
Subscribe to live state changes for a single invoice over Server-Sent Events (SSE) — from the moment it is created until it is paid, cancelled, or expires.
GET List balance ledger entries
Returns a cursor-paginated, newest-first slice of your account's balance ledger (every credit and debit).
GET List invoices
Return the authenticated user's billing invoices, optionally filtered by status and capped to a limit.
GET List payment rails
Returns the catalog of payment rails (network + token combinations) the platform can accept, so the frontend can build its payment channel/rail selector.
POST Pay invoice from balance
Settle a pending invoice instantly by debiting the signed-in user's prepaid balance.
POST Submit in-app transaction
Notify the billing backend that a signed Solana payment transaction for an in-app invoice has been (or should be) broadcast.

Referrals 14

DELETE DELETE /v1/referrals/code — Remove custom referral slug
Disables your active custom referral slug; your permanent UID-based code keeps working.
GET GET /v1/admin/referrals/users/{user_id} — Operator view of a user
Operator-only lookup that returns a single user's full referral state — tier, code, paid-invitee count, balance, and their most recent attribution audit rows — in one call.
GET GET /v1/referrals/invitees — List referred users
Returns the users who signed up under your referral code, with how much each has paid.
GET GET /v1/referrals/me — Referral overview
Returns the authenticated user's referral overview: their primary code, tier, commission rate, paid-invitee count, and earnings balance.
GET GET /v1/referrals/payouts — List payout requests
Returns the authenticated user's referral payout requests, newest first, with pagination.
GET GET /v1/referrals/rewards — List referral rewards
Lists the calling user's referral rewards — one row per qualifying payment event — with optional status filtering and pagination.
POST POST /v1/admin/referrals/payouts/{id}/failed — Mark payout as failed
Operator action that transitions a referral payout into the terminal failed state, optionally recording a reason.
POST POST /v1/admin/referrals/payouts/{id}/sent — Mark payout as sent
Operator action that marks a referral payout as sent, recording the on-chain transaction hash that fulfilled it.
POST POST /v1/admin/referrals/simulate-paid — (Retired) Simulate paid invoice
Retired endpoint. This operator route is no longer offered — it always responds 410 Gone. It existed only in stage 1, before the automated billing bridge began emitting referral rewards from real invoice_paid events. The intended contract is documented below for historical reference.
POST POST /v1/admin/referrals/users/{user_id}/tier — Override user referral tier
Operator action that sets a user's referral tier directly; the platform never auto-promotes, so this endpoint is the only way a tier changes.
POST POST /v1/auth/attribute — Attribute signup to a referral code
Best-effort post-login hook that links a freshly signed-in account to the referral code captured in the visitor's ref_code cookie.
POST POST /v1/referrals/code — Set custom referral slug
Create or update the authenticated user's custom referral code (slug).
POST POST /v1/referrals/payouts — Request a referral payout
Submits a request to pay out your available referral balance to an on-chain address; the request is created in requested status and settled asynchronously by operators.
POST POST /v1/referrals/spend-on-invoice — Apply referral credit to an invoice
Spends part of your available referral balance to cover an eligible invoice in full.