Liquidity Docs
API Reference

API: `ta-api` (core)

The core Transfer Agent API: operator auth, identity, compliance, lifecycle, operations, register, corporate actions, trading & settlement, the MPC ceremony proxy, audit, reports, reconciliation.

The core Transfer Agent API (the ta-api service; the Go module is still github.com/liquidity-alt/ta-revision). Machine-readable spec: ta-api.openapi.yaml (OpenAPI 3.0, 45 paths, 39 component schemas).

ta-api is the regulatory / ledger / governance brain. It owns the register, compliance rules, maker-checker governance and audit, and delegates every on-chain effect to wallet-api over HTTP.

Last updated: 2026-08-12.

Conventions

Auth (two lanes, both fail closed)

ta-api does not authenticate anyone itself - it verifies a signed token and turns it into a principal. There is no unauthenticated-but-allowed path.

LaneCredentialWho uses it
Operator sessionAuthorization: Bearer <jwt> - an admin session minted by liq-ats or by ta-api's own sign-in routes, verified locally against the shared HMAC secret (TA_ADMIN_JWT_SECRET)Humans in the operator console
ServiceAuthorization: Bearer <TA_SERVICE_API_KEY>liq-ats server-to-server (investor onboarding, order flow, the MPC ceremony)
  • The acting operator comes from the token. X-Actor-Id is ignored everywhere (a mismatch is logged), as are maker / checker body fields on corporate-action execution. Previously identity was a client-supplied header, so maker-checker compared two self-declared strings; the control was real, the identity behind it was not.
  • Roles mirror liq-ats's AdminRole (ADMIN, COMPLIANCE_OFFICER, BD, SURVEILLANCE, READ_ONLY) plus ta-api's own SERVICE. Write permission is an allow-list checked by HTTP method, so a new mutating route is covered the day it is written. Unknown roles cannot write.
  • Revocation lag: tokens are verified by signature only, so a session revoked in liq-ats still authenticates here until it expires - bounded at 8h, the admin-token TTL.
  • Maker-checker: the verified identity is the maker; the checker must be a different verified operator. An operator who can create operators can defeat this, so /admin/operators is additionally ADMIN-only.

Other conventions

  • Amounts: on-chain token amounts are base units (scaled by decimals); dividend/entitlement amounts are USD minor units (cents). A create_asset amount is whole tokens.
  • Public paths (no auth): /healthz, /readyz, /metrics, /admin/login*, GET /uploads/* (listing images are rendered for anonymous catalog visitors).
  • CORS preflight passes through auth untouched (an OPTIONS carries no Authorization header and reaches no handler).

Endpoints by area

Operator sign-in & administration

MethodPathPurpose
GET/admin/login/methodsWhich sign-in methods this deployment offers
POST/admin/login/googleGoogle sign-in (a verified Google identity with no operators row gets 403, not a session)
POST/admin/loginPassword sign-in - the second way in, so a broken Google client cannot lock every operator out
GET · POST/admin/operatorsList / create operators (ADMIN only)
PATCH/admin/operators/{id} · /admin/operators/{id}/passwordUpdate an operator / set their password
DELETE/admin/operators/{id}Remove an operator

Identity & eligibility

MethodPathPurpose
POST/identity/registerOnboard/register a wallet in the identity registry
POST/identity/deregisterRemove a wallet from the registry
GET/identity/eventsKYC verdict / identity events (?wallet, ?limit)
GET/identity/{wallet}Holder identity + KYC status
GET/eligibility/{wallet}Whether a wallet is eligible to hold

Compliance

MethodPathPurpose
POST/compliance/evaluateEvaluate a proposed transfer against rules
GET/compliance/rulesList compliance rules
POST/compliance/rulesCreate/upsert a compliance rule
GET/compliance/rules/{id}/versionsRule version history

Lifecycle (maker-checker, on-chain)

MethodPathPurpose
POST/lifecycle/assetsIssue an asset under maker-checker - the operator path; a deploy must be approved by someone other than the requester
POST/lifecycle/mintMint tokens to a holder
POST/lifecycle/burnBurn tokens from a holder
POST/lifecycle/freeze · /lifecycle/unfreezeFreeze / unfreeze a holder's full balance
POST/lifecycle/freeze-partial · /lifecycle/unfreeze-partialPartial freeze / unfreeze
POST/lifecycle/forced-transferForce a transfer between holders

Issuable regimes are an allow-list: regd506b, regd506c, regcf. Anything else is a rejected request - wallet-api falls back to an unregulated plain token for what it does not recognise, so a typo must never become a silently unregulated asset.

Trading & issuance (the on-chain facade)

The chain mechanics are delegated to wallet-api, but the responsibility is the TA's. Two audiences that must not be conflated: liq-ats-facing order flow (propose / cancel / settle) and TA-internal duties (mint / deposit / accredit), which are the Transfer Agent's own powers and must never be reachable by liq-ats.

MethodPathPurpose
GET/trading/capabilitiesWhat this deployment can do on-chain
POST/trading/proposePropose (vouch) an order intent
POST/trading/cancelCancel a resting order
POST/trading/settleSettle a matched pair
GET/trading/settle/{trade_id}Settlement status by trade id
POST/settlement/fillExecutor path for liq-ats: V42 TokenSettlement fill for an already-vouched pair. Callers supply the V42 addresses and the full vouched order params including each side's nonce, so the digests reconstruct and fillBatch submits. One taker × N makers goes through this same endpoint - there is no separate batch route
POST/assetsIssue a plain (unregulated) token
POST/assets/regime · /assets/regs · /assets/regime/{kind}Issue under a regime (regime defaults to Reg D 506(b); {kind} names it explicitly)
POST/assets/mintMint (TA duty)
POST/assets/depositDeposit USDL (the cash leg)
POST/accreditGrant a Reg D accreditation claim

Issued assets are also published to the exchange catalog. Publishing is additive: if the exchange client is unconfigured the asset is still issued and booked, it just does not appear in the marketplace.

Raw ABI call lanes deliberately stay in wallet-api (TA-CLIENT-002). ta-api serves the stable trading/asset/settlement contract, not the low-level call surface - see wallet-api raw-call lanes.

MPC ceremony proxy

ta-api is a transparent hop for the 2-of-3 MPC ceremony: it forwards bytes, never decodes a protocol frame, and deliberately does not hold the node3 secret. Paths mirror wallet-api's exactly, so a client only changes its base URL. Authenticated with the service key (no operator is present when an investor creates a wallet).

MethodPathPurpose
GET/wallet/mpc-configRelay paths (rewritten to ta-api's own), party set, threshold
GET/wallet/mpc/relayWebSocket - keygen frames -> wallet-api -> node3
GET/wallet/mpc/signWebSocket - signing frames -> wallet-api -> node3
POST/trade/propose-tx · /trade/cancel-txVerbatim passthrough: build the unsigned tx + signing hash for the device
POST/wallet/tx/approve · /wallet/approve/executeVerbatim passthrough: the standing-allowance flow

The four passthroughs forward method, body, status and response bytes untouched - mirroring wallet-api's request shapes by hand invites silent drift where a renamed field is dropped by the JSON decoder and the caller sees success with nothing done. There is no pre-params route: the live Doerner engine has no pre-computation. Full mechanism: wallet-api / mpc.

Onboarding

MethodPathPurpose
POST/onboardingRun the investor-onboarding saga (provision + register + book)
GET/onboarding/{operation_id}Saga status

Operations & approvals

MethodPathPurpose
GET/operationsList operations (approval queue)
GET/operations/{id}Operation detail
POST/operations/{id}/approveApprove (checker != maker) -> executes
POST/operations/{id}/rejectReject

Register (read model + booking)

MethodPathPurpose
GET/tokensList tokens (with issued supply)
POST/tokensBackfill: book a contract deployed before/outside ta-api so it gets indexed
GET/positionsPositions (all / ?token=)
GET/positions/atPositions as-of a historical block
GET/holders · /holders/{id}/positionsHolders / a holder's positions
POST/registryBook a provisioned V42 wallet into the register. Called by liq-ats once onboarding completes. The V42 multisig is the holder address (the signer EOA is not a holder). Idempotent
GET/wallets/{wallet}/statementPer-asset wallet statement
GET/wallets/{wallet}/activityCross-asset, cross-source activity timeline

Corporate actions / dividends

MethodPathPurpose
GET/distributions · /distributions/{id}List / detail (with entitlements)
POST/distributionsDeclare a dividend (token_id, record_date_block?, rate)
POST/distributions/{id}/snapshotSnapshot holders of record
POST/distributions/{id}/computeCompute per-holder entitlements (USD)
POST/distributions/{id}/executeExecute (on-chain USDL path, maker-checker)
GET/distributions/treasuryCorp-actions treasury / payments

Fiat dividends (credit each holder's wallet) are served by the subledger: POST /distributions/{id}/payout-wallet - see api/subledger-api.

Reconciliation

MethodPathPurpose
GET/recon/statusReconciliation status across tokens
POST/recon/runTrigger a recon run
GET/recon/{id}Recon run detail

Cap table

MethodPathPurpose
POST/captable/importImport a Carta cap table
GET/captableCurrent cap table
DELETE/captableClear the cap table

Reports & audit

MethodPathPurpose
GET/reports/atsDaily ATS report (?date, ?status, ?q, paginated)
GET/auditAudit log (?actor, ?action, ?limit, ?offset)
GET/audit/verifyVerify the audit chain integrity ({ok, broken_seq})
GET/audit/exportExport the full ordered audit trail

Uploads (listing images)

MethodPathPurpose
POST/uploads/imageUpload a listing image (authenticated - an open endpoint is free hosting served from our own origin)
GET/uploads/*Serve an uploaded image (public - the catalog renders these for anonymous visitors)

Callbacks & events (admin/integration)

MethodPathPurpose
POST/callbacks/kycKYC verdict webhook (Simplici), dispatched durably through the events pipeline
GET/events/streamServer-sent events (live updates; mounted outside the timeout group - SSE has no Flusher there)
GET/events/recent · POST /events/emitRecent events / emit a test event
GET/events/dlq · POST /events/dlq/{id}/replay · POST /events/dlq/replay-allDead-letter queue + replay
GET/consoleSelf-contained event observability console

Health

MethodPathPurpose
GET/healthz · /readyz · /metricsLiveness / readiness (DB ping) / Prometheus metrics

Spec coverage notes

The OpenAPI file is the contract for request/response shapes, but it is not yet a complete route inventory. When they disagree, the router is the truth.

  • Served, not yet in the spec: operator sign-in + /admin/operators, /uploads/*, /onboarding, the MPC ceremony proxy and device-sign passthroughs, POST /registry, POST /tokens, /wallets/{wallet}/activity, /lifecycle/assets, /lifecycle/unfreeze, /lifecycle/{freeze,unfreeze}-partial, /assets/mint, /assets/deposit, /accredit, /captable*, /reports/ats, /identity/events, /callbacks/kyc, /events/{recent,emit,dlq}, /console.
  • In the spec, not served: POST /settlement/settle (marked legacy) and GET /settlement/{trade_id}. Use POST /settlement/fill and GET /trading/settle/{trade_id}.
  • Auth in the spec is stale: it still documents the dev X-Actor-Id / X-Checker-Id headers. Both are ignored by the running service - see Auth.

Full contracts

Every request body, response schema, and status code is defined in ta-api.openapi.yaml. Render it with any OpenAPI viewer:

npx @redocly/cli preview-docs ta-api.openapi.yaml
# or lint it
npx @stoplight/spectral-cli lint ta-api.openapi.yaml