# TokenGuard Borrow Endpoint

> TokenGuard Borrow Endpoint is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Retrieves DeFi borrowing data and analytics for on-chain lending protocols via the TokenGuard crypto intelligence API

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/borrow
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-borrow-endpoint-e4ba6a70
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FFsK9OMppXqp87ultjpou

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 tokenguard-borrow-endpoint-e4ba6a70 -d '<json body>'
```

Example prompt: What are the current borrow rates and available liquidity for USDC on Base chain lending protocols — pull the latest data from TokenGuard's borrow endpoint.

## When to prefer this

Choose this endpoint when you need real-time or recent DeFi borrow rate data, lending protocol analytics, or on-chain borrow position information — especially for Base chain assets. It is well-suited for AI agents building DeFi dashboards, yield optimization strategies, or liquidation risk monitors. Prefer it over generic blockchain RPC calls when you want pre-processed, analytics-ready borrow metrics without building your own indexer.

## Known failure modes

- Invalid or unsupported token/contract address returns an error or empty result
- Unsupported chain or protocol returns no data
- Malformed POST body causes 400-level error
- x402 micropayment failure or insufficient USDC balance blocks the call
- Rate limiting if too many calls are made in quick succession
- Data may be stale if on-chain indexing is delayed

## How this service works

borrow data for AI agents.

## Output

Returns a JSON object containing DeFi borrowing data such as borrow rates, protocol utilization, active borrow positions, collateral ratios, health factors, and available liquidity for the queried token or protocol on-chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-borrow-endpoint-e4ba6a70/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
