# Ozmium Morpho Blue Loan Repay

> Ozmium Morpho Blue Loan Repay is a paid API for AI agents from ozmium.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates verified Morpho Blue repay calldata (with optional loan-asset approve step) for repaying a borrow position on Base mainnet.

## Facts

- Endpoint: POST https://ozmium.org/v1/tx/loan/repay
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-morpho-blue-loan-repay-94f0fb08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SBlcjE_hmD3_t1w0yhzPS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ozmium-morpho-blue-loan-repay-94f0fb08 -d '<json body>'
```

Example prompt: Repay 500000000 atomic units of my Morpho Blue loan in market 0xabc123...def for owner address 0x742d35Cc6634C0532925a3b8D4C9C3B4a1234567 — include the loan-asset approve step if needed.

## When to prefer this

Use this endpoint when an AI agent needs to repay an active Morpho Blue borrow position on Base mainnet and requires ready-to-sign calldata with verified MarketParams. Prefer this over manually constructing Morpho Blue repay calldata, especially when the approve step logic needs to be handled automatically.

## Known failure modes

- Invalid or unrecognized marketId returns an error or empty MarketParams
- Malformed owner address (not a valid Ethereum address) causes a validation error
- Assets value of zero or negative triggers a bad-request error
- Market not found on Base mainnet returns a 404 or descriptive error
- Network or RPC unavailability causes a 5xx server error
- Payment not included or insufficient USDC fee returns a 402 Payment Required

## How this service works

Morpho Blue repay calldata with verified MarketParams; loan-asset approve step included when needed. POST /v1/tx/loan/repay { marketId, assets (atomic), owner }.

## Output

Returns unsigned Morpho Blue repay calldata with verified MarketParams, plus an ERC-20 approve calldata step when the loan asset spending allowance is insufficient. The agent can sign and broadcast these transactions to execute the repayment on Base mainnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "owner": {
   "type": "string"
  },
  "assets": {
   "type": "string"
  },
  "marketId": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-morpho-blue-loan-repay-94f0fb08/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ozmium.org](https://www.zero.xyz/host/ozmium.org/llms.txt)
