Documentation Index
Fetch the complete documentation index at: https://limitless-docs-ws-settlement-events.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Official SDKs include helper methods for this endpoint.
- Route:
POST /portfolio/withdraw - Auth:
apiToken, Privy, or session auth - Scope:
withdrawalwhen usingapiToken
Request body
| Field | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | Token amount in smallest unit (for USDC: 1000000 = 1 USDC). |
token | string | No | ERC20 token address. Defaults to USDC when omitted. |
onBehalfOf | number | No | Managed sub-account profile id. Must be a child of the authenticated partner profile when present. |
destination | string | No | Explicit destination address. Must be the authenticated account, authenticated smart wallet, or an active withdrawal address allowlisted on the authenticated profile. |
| Flow | Body | Result |
|---|---|---|
| Partner sub-account default destination | amount + onBehalfOf | Withdraws from the child server wallet to the authenticated partner’s default destination. |
| Own server wallet to explicit destination | amount + destination | Withdraws from the authenticated caller’s own server wallet to an allowed destination. |
| Partner sub-account to explicit destination | amount + onBehalfOf + destination | Withdraws from the child server wallet to an allowed destination. |
Example: sub-account default destination
Example: sub-account to allowlisted destination
Example: own server wallet to allowlisted destination
Destination allowlist
Explicitdestination values are accepted only when the address is one of:
- the authenticated caller’s account address
- the authenticated caller’s smart wallet address
- an active withdrawal address allowlisted on the authenticated caller profile
onBehalfOf withdrawals, the allowlist belongs to the authenticated partner profile, not the child onBehalfOf profile.
Use POST /portfolio/withdrawal-addresses and DELETE /portfolio/withdrawal-addresses/:address to manage the allowlist.
Notes
- When
destinationis omitted, the API uses the authenticated caller’s default destination: smart wallet when present, otherwise account address. - Destination validation blocks withdrawals to third-party addresses that are not allowlisted.
- Legacy API keys are not supported on server-wallet operations.