Wallet Unlink
Wallet
Wallet Unlink
Revert from self-custody back to managed wallet.
Restores the managed wallet mode. Users can switch back and forth freely between managed and self-custody.
Rate limited: 10 attempts per hour per API key.
POST
Wallet Unlink
Revert from self-custody back to managed wallet.
Overview
Restores the user’s managed wallet from the previous state. Users can switch back and forth freely between managed and self-custody.What Happens
mk_ai_agent.wallet_addressis cleared (set toNULL)- All wallet credential rows for the user are physically deleted from
mk_ai_agent_wallet_credential. This is intentional: the table has a unique index onapi_key, and a soft-deleted row would block the same key from being re-registered against a different(wallet_address, signature_type)pair (e.g. migrating from an EOA to its Polymarket Deposit Wallet). - The user can re-link a wallet at any time via the challenge flow.
Rate Limiting
- 10 attempts per hour per API key (IP-based)
Re-linking
After unlinking, you can link the same or a different wallet by going through the challenge flow again:GET /wallet/link/challenge?address=0x...POST /wallet/linkwith the signed challenge