Skip to main content
POST
/
lending
/
borrow
Borrow
curl --request POST \
  --url https://api.example.com/lending/borrow \
  --header 'Content-Type: application/json' \
  --data '
{
  "offerId": "<string>"
}
'

Request

offerId
string
required
UUID of the loan offer to accept.
curl -X POST https://api.midasprotocol.org/lending/borrow \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "offerId": "offer-uuid" }'

Response

{
  "id": "uuid",
  "borrowerId": "your-uuid",
  "lenderId": "lender-uuid",
  "amount": "100.00",
  "currency": "USDC",
  "interestRate": 5,
  "collateralAmount": "50.00",
  "dueAt": "2026-02-01T00:00:00.000Z",
  "status": "ACTIVE"
}
The collateral amount is debited from the borrower’s wallet and held in escrow.