Api Endpoint

Afterbook

A wallet's Aave V4 and Morpho stock-token loans on Base: health at the lending oracle and at Aero's onchain price (which keeps trading while the cash market is shut), how far the collateral could fall before liquidation, whether it is under your threshold, and for an Aave loan links that open Afterbook's Aave panel with the repay or the added collateral worked out, for the person to sign. Read-only.

Open interactive test console

Offering

Provider
afterbook.app
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://afterbook.app/api/v1/x402/loan-health
MIME type
application/json
First seen
2026-11-25T19:24:10.917Z
Last seen
Tags
tokenized-stocks, Base, coinbase, lending, aave, morpho, Risk

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0x9b3F205E43dc9FcC1cc2Fe6d9dCD0357769A6Bae"
  }
]

Observed health

Status
Healthy
Latest latency
134 ms
Average latency
146 ms
HTTP status
402
Last checked
Reachability
100% over 2 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "wallet": {
          "type": "string",
          "description": "A wallet address (0x followed by 40 hex characters)"
        },
        "threshold": {
          "type": "number",
          "description": "Health to flag loans under (default 1.2)"
        }
      },
      "required": [
        "wallet"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}