Create a loan (borrow)
Originates a loan (borrow) against posted collateral. Asynchronous. Circle
builds, signs, and submits the borrow UserOperation for you. Poll the
returned job until it reaches completed or a terminal failure state.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request to originate a new borrow position.
Idempotency key
(UUID v4) for this request. Reusing it with a different body returns
409 Conflict.
Lending protocol.
morpho Identifier of an active market from GET /v1/borrow/markets.
Borrow amount, as a raw onchain uint256 base-unit amount (decimal-integer string).
Must be positive.
Collateral to post, as a raw onchain uint256 base-unit amount
(decimal-integer string, no fractional part). Optional. Omit or send 0
to draw additional debt against an existing position without adding
collateral. When supplied, must be zero or positive.
Response
Loan request (borrow) accepted. Poll the returned job to track its status.
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.