V2 Integrator API
Submit Liquidate-All (Stage 2)
Stage 2 of the two-stage liquidate-all flow — submits the user-signed authorization. Accepted operations dispatch async.
POST
Stage 2 of the two-stage liquidate-all flow. Accepts the
message returned by
POST .../liquidate-all/signature verbatim,
plus the owner’s signature. Verifies ownership, re-checks live balances, and
dispatches the swap-to-USDC + delivery to the recipient.
This is functionally identical to
POST .../withdraw submitting a liquidate: true
authorization — same verification, idempotency (keyed on message.nonce), and
polling. Echo typedData.message back as body.message; the liquidate: true
flag must be present and is part of the signed bytes.
- Auth:
x-api-keyheader (required) - Scope:
portfolios:withdraw - EVM only.
Polling for onchain status
The response returnsoperationId. Poll
GET /v2/portfolios/{portfolioId}/operations/{operationId}
until the operation reaches a terminal (completed / failed / cancelled)
state. The operation tracks the swap that produces and delivers the USDC.
Common error responses
Identical toPOST .../withdraw,
including 400 API_219 WITHDRAW_AS_USDC_UNSUPPORTED_CHAIN when the recipient’s
chain has no canonical USDC, plus the shared expiry / signature / idempotency
errors.