How It Works
Integration Surface
Platforms integrate Swype through a small, stable surface area consisting of:
One backend API call
One frontend entry point
Webhook handling
Create a transfer session
Platforms initiate deposits and withdrawals by creating a transfer session server-to-server.
The platform backend provides:
Destination address (app account or stablecoin app)
Destination chain
Accepted assets
Optional amount constraints
Return URLs for client handoff
Transfer sessions are:
Short-lived
Single-use
Immutable once created
Platforms should treat Swype as the source of truth and avoid maintaining parallel transfer state.
Idempotency
Session creation requests must be idempotent
Platforms should include a unique idempotency key per logical transfer
Replayed requests will return the same session object
This prevents duplicate transfers during retries or network failures.
Platforms expose a single entry point on the frontend.
On user interaction:
The app requests a transfer session from its backend
The app opens the returned Swype-hosted browser flow
Control returns to the app via deep link on completion or cancellation
The platform does not render transfer UI, wallet selection, or approval screens.
Swype communicates transfer lifecycle updates via webhooks.
Event types
transfer.processingtransfer.completedtransfer.failed
Webhooks are:
Delivered at least once
Signed for verification
Replay-safe