ALPHACurrently on Devnet
← All Docs

API Reference

REST endpoints for payments, swaps, compliance, and wallet verification.

NautPay Routes (Next.js API)

POST /api/agent

Server-side agent endpoint. Parses natural-language payment intent, runs compliance pre-flight, returns structured transaction for wallet signing.

Request:

{
  "message": "Pay 5000 USDC to alice.sol",
  "walletAddress": "7xKXtg...",
  "contacts": [{ "name": "alice", "address": "ABC123..." }]
}

Response (approved):

{
  "intent": {
    "action": "transfer",
    "amount": 5000,
    "token": "USDC",
    "recipient": "alice.sol",
    "confidence": 0.95
  },
  "compliance": {
    "approved": true,
    "risk_score": 0.05,
    "recommendation": "approve"
  },
  "resolved": {
    "from": "7xKXtg...",
    "to": "ABC123...",
    "source": "sns",
    "label": "alice.sol"
  },
  "execute": {
    "action": "transfer",
    "amount": 5000,
    "token": "USDC",
    "recipient": "ABC123..."
  }
}

POST /api/swap

Server-side Jupiter proxy. Avoids CORS issues and dead DNS (quote-api.jup.ag).

Quote request:

{ "action": "quote", "inputToken": "USDC", "outputToken": "EURC", "amount": 1000 }

Transaction request:

{ "action": "transaction", "quote": { ... }, "userPublicKey": "7xKXtg..." }

POST /api/wallet-verify

Server-side proxy for NautLense wallet verification. Adds NAUTLENSE_SERVICE_TOKEN as Bearer auth.

Actions:

{ "action": "status", "wallet_address": "7xKXtg..." }
{ "action": "initiate", "wallet_address": "7xKXtg...", "chain": "solana" }
{ "action": "confirm", "verification_id": "uuid", "signature": "base58..." }

POST /api/kyc/sumsub-token

Sumsub WebSDK access token generation. Returns 503 if Sumsub credentials not configured.


NautLense API (Compliance Engine)

Base URL: https://api.nautlense.com (production) / http://localhost:8090 (local)

Core Transactions

EndpointMethodDescription
/tx/capturePOSTRecord tx + risk scoring + sanctions + Travel Rule + hash chain
/tx/compliance-checkPOSTPre-flight risk assessment (no DB write)
/tx/recentGETRecent transactions feed (pagination)
/tx/verify-chainGETSHA256 hash chain integrity verification
/tx/:idGETSingle transaction detail

Travel Rule & Compliance

EndpointMethodDescription
/settings/jurisdictionsGET/PUTCH/DE/AT/EU jurisdiction configs
/counterpartiesPOST/GETAddress book with auto-risk scoring
/travel-rule/validatePOSTPre-flight data completeness check
/travel-rule/transfersPOST/GETTravel Rule transfer records
/travel-rule/statsGETCompliance statistics
/travel-rule/receivePOSTInbound VASP-to-VASP data (IVMS101)

Sanctions Screening

EndpointMethodDescription
/sanctions/screenPOSTScreen name/address against SECO/OFAC/EU/UN
/sanctions/screen-batchPOSTBatch screening (max 100)
/sanctions/listsGETAvailable sanctions lists metadata

Wallet Verification (Poco)

EndpointMethodDescription
/wallets/verify/initiatePOSTStart verification (generates challenge)
/wallets/verify/confirmPOSTSubmit signed challenge
/wallets/verify/:address/statusGETCheck verification status

Emergency

EndpointMethodDescription
/emergency/lockdownPOSTFreeze all transaction processing
/emergency/unlockPOSTLift lockdown
/emergency/statusGETCurrent state + history

Other

EndpointMethodDescription
/sarPOSTCreate SAR (case number: SAR-YYYY-NNNN)
/sar/:id/submitPUTFile to authority + asset freeze
/auth/loginPOSTJWT auth with RBAC
/reports/generatePOSTGenerate compliance reports
/analytics/complianceGETDashboard stats (Redis cached)
/analytics/accountingGETCost basis FIFO, P&L, tax events
/healthGETSystem health check