Skip to content
Hightop docs header art
Hightop
Reference

/earn/withdraw

POST/v1/agent/earn/withdraw

Create an earn withdrawal operation

Requires API-key authentication (agentAuth, agentId).

Request body

position_idrequiredstringExisting 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_allboolean
destination_assetstring
allow_conversionboolean
amountstring
amount_usdstring

Response

okrequiredenum
true
operation_idrequiredstring
statusrequiredenum
accepted · policy_rejected · submitted · executed · execution_failed · cancelled
fee_usdrequiredstring
human_messagestring
repay_amount_usdstring
estimated_ltv_afterstring