1. Get an API key
Sign up at dashboard.privataswap.com. You get
two keys immediately:
pk_test_... — sandbox. Orders are flagged sandbox=1 and excluded from payouts.
pk_live_... — production. Orders count toward your revenue share.
Never ship pk_live_ keys in mobile or web bundles. The SDK enforces a runtime
check and warns when a live key is used from a browser bundle.
2. Install the SDK
3. Quote and create an order
4. Track status
Pick one transport. Don’t combine both — events will duplicate.
SSE (recommended)
Webhooks
The SDK handles Last-Event-ID reconnection and exposes Privata-Resume-Source
via stream.lastResumeSource. Register your URL in the dashboard. We POST signed order.* events to it with
retry schedule 1m / 5m / 15m / 1h / 4h / 12h / 24h (7 attempts).
Verify the signature:
5. Move to production
- Swap the
pk_test_ key for pk_live_ in your environment.
- Confirm your webhook URL is reachable from
*.privataswap.com ranges (see IP allowlist).
- Subscribe to the status page RSS for incident notifications.
- Add a Pingdom probe against
GET /partner/v1/health if you want SLA credits.
You’re live.