POST /api/v1/onboard
Unified onboarding endpoint. Supports two modes:
- Managed — Parsec creates a wallet and derives exchange credentials on your behalf (Polymarket only).
- Self — You provide your own exchange credentials (Polymarket or Kalshi).
Managed mode — two wallet paths
Managed mode supports two mutually exclusive wallet paths:| User type | wallet_type | eoa_address | What happens |
|---|---|---|---|
| No external wallet | eoa (default) | omit | Parsec creates an embedded EOA wallet |
| External wallet (e.g. MetaMask) | safe | required | Parsec creates a Safe wallet owned by the external address |
wallet_type: "safe"requireseoa_address— returns 400 without it.- Providing
eoa_addresswithwallet_type: "eoa"returns 400 — external wallet users must use"safe".
Parameters
Exchange to onboard.
polymarket or kalshi.managed or self.Managed mode options
eoa (default) — Parsec creates an embedded EOA wallet.
safe — Parsec creates a Safe wallet (requires eoa_address).External wallet address (42-char hex,
0x-prefixed). Required when wallet_type: "safe".
When provided, Parsec skips embedded EOA creation and uses this address as the Safe owner.
Must not be provided when wallet_type: "eoa".Chain ID for Safe wallet creation. Defaults to Polygon (137). Only used with
wallet_type: "safe".Self mode — Polymarket
Polymarket CLOB API key.
Polymarket CLOB API secret.
Polymarket CLOB API passphrase.
Your Ethereum private key (hex,
0x-prefixed). Enables order signing so you can
place and cancel orders. Without it, only read operations (balance, positions) work.Self mode — Kalshi
Kalshi API key ID.
Kalshi RSA private key (PEM format).
Response
The exchange that was onboarded.
managed or self.complete on success, or already_linked when managed Polymarket onboarding
is re-run for an account that is already linked.EOA wallet address. For managed EOA mode, this is the Parsec-created embedded wallet.
For managed Safe mode, this is the external wallet address that owns the Safe.
Safe wallet address. Present only when
wallet_type: "safe".All exchanges linked to this account.
Steps completed during this call (for idempotency transparency). Possible values:
wallet_eoa_created— Embedded EOA wallet created (managed EOA path)external_eoa_provided— External wallet address accepted (managed Safe path)wallet_safe_created— Safe wallet created (managed Safe path)exchange_linked— CLOB credentials derived + approvals set (managed mode)credentials_validated— Credentials validated (self Kalshi)credentials_stored— Credentials stored (self mode) Whenstatusisalready_linked, this list is empty.
Mode support matrix
| Exchange | Managed | Self |
|---|---|---|
| Polymarket | Yes | Yes |
| Kalshi | No (create account at kalshi.com) | Yes |