Skip to main content
POST
Trigger a residual collateral sweep

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Universally unique identifier (UUID v4) of a resource.

Example:

"b3d9d2d5-4c12-4946-a09d-953e82fae2b0"

Body

application/json

Manual trigger for a residual collateral withdrawal. Circle automatically creates a withdraw_residual job after a partial liquidation, so use this request only if the automatic job cannot be completed and you need to retry the sweep.

idempotencyKey
string<uuid>
required

Idempotency key (UUID v4) for this request. Reusing it with a different body returns 409 Conflict.

Response

Residual sweep accepted. Poll the returned job to track its status.

data
object

An async onchain operation. Each job represents one of: borrow, repay, add collateral, wallet setup, owner change, or residual withdraw. Poll this resource until the job reaches a terminal status (completed, failed, or approval_rejected). Fields that do not apply to the current status or job type are omitted rather than returned as null.

Example: