/earn/withdraw
POST
/v1/agent/earn/withdrawCreate an earn withdrawal operation
Requires API-key authentication (agentAuth, agentId).
Request body
position_idrequired | string | Existing earn-position identifier. Always a Base ERC4626 vault contract address (case-insensitive) identifying a vault the wallet holds shares in. Read these from /v1/agent/earn. | |
withdraw_all | boolean | ||
destination_asset | string | ||
allow_conversion | boolean | ||
amount | string | ||
amount_usd | string |
Response
okrequired | enum | true | |
operation_idrequired | string | ||
statusrequired | enum | accepted · policy_rejected · submitted · executed · execution_failed · cancelled | |
resourcerequired | object | ||
fee_usdrequired | string | ||
human_message | string | ||
policy_evaluation | object | ||
repay_amount_usd | string | ||
estimated_ltv_after | string | ||
onchain | object |
