Skip to main content
POST
Add collateral

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

Request to add collateral to an existing loan position.

idempotencyKey
string<uuid>
required

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

amount
string
required

Amount of collateral to add, in raw onchain uint256 base units (for example, "1500000" for 1.5 USDC). Decimal-integer string. Must be positive.

Response

Request to add collateral 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: