OpenPoly logo
Integration Flow

Architecture

System actors and request flow for the Mini App integration.

Architecture

Mini App integration has 3 operator-owned backend responsibilities:

  • call launch API
  • implement wallet adapter
  • implement webhook receiver

OpenPoly owns the Mini App UI, Opinion market engine, shared Polyflight engine, execution state, and callback dispatch.

Actors

  • operator backend
  • operator wallet service
  • operator webhook receiver
  • OpenPoly operator API
  • OpenPoly Mini App client
  • OpenPoly execution and webhook systems

End-to-end shape

Core invariants

  • browser never receives operator API key
  • browser never receives wallet adapter secret
  • launch token is short-lived and single-use
  • wallet mutation and Polynion DB write are not one atomic transaction
  • webhook delivery happens after business state commit
  • Polyflight wallet amounts are native IDR; its frozen FX observation affects shared-flight comparison only
  • one operator wallet outage does not change a committed Polyflight result
  • callback replay/backfill delivers notifications; it never reruns the underlying trade, redemption, or wallet mutation
  • operator reporting and support cannot authorize a monetary correction; wallet-outcome decisions require authorized Polynion review

What operator builds

  • server-side launch call
  • wallet adapter endpoints
  • webhook receiver with dedupe
  • dashboard configuration and operational process

What Polynion provides

  • Mini App UX
  • quote and execution engine
  • session and launch token handling
  • operator-facing reporting APIs
  • webhook dispatch and replay surfaces

Separate the control planes

SurfacePurposeCredential boundary
Operator APIBackend launch and scoped reporting/configurationServer-held API key, or authorized dashboard staff session.
Operator DashboardHuman operations, evidence inspection, support, and requestsStaff login; page visibility follows effective scopes.
Mini App clientEnd-user quotes, orders, tickets, and proofRedeemed user session; never the operator API key.
Wallet adapterOperator ledger reads and idempotent mutationsDedicated wallet credentials and optional signing.
Webhook receiverDurable business-event ingestionRaw-body HMAC verification and event_id deduplication.

Support conversations are shared within an operator, but remain separate from user sessions and Polyflight purchase tickets. Market requests require staff consent and Polynion approval; visibility configuration alone does not create a private market.

Copyright © 2026