# HostDeFi API Key Provisioning

> HostDeFi API Key Provisioning is a paid API for AI agents from rpc.hostdefi.com, paid per call via x402, $5/call, status unknown (last checked 2026-10-01).

Issues a paid API key (x402agent plan, 5,000-quota) for accessing HostDeFi's Solana DEX, token safety scanner, and multi-chain trading services.

## Facts

- Endpoint: POST https://rpc.hostdefi.com/api/v1/x402/keys?utm_source=zero.xyz
- Price: $5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-api-key-provisioning-d142643a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gCURYmI7wg2wkIX3otpBu

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 hostdefi-api-key-provisioning-d142643a -d '<json body>'
```

Example prompt: Get me a HostDeFi API key so I can start using their Solana DEX and token safety scanner — I'm okay paying the 5 USDC fee for the x402agent plan with 5,000 quota.

## When to prefer this

Choose this endpoint when you need to programmatically obtain credentials for the HostDeFi platform — specifically when you intend to use their Solana DEX (Jupiter-routed swaps), EVM multi-chain trading, bridging, or token safety scanner APIs and need a quota-bearing API key via a USDC micropayment.

## Known failure modes

- Payment not received or insufficient — key not issued
- USDC payment transaction fails or times out
- Duplicate provisioning attempt may not return same key
- Missing or malformed POST body returns validation error
- Network error reaching rpc.hostdefi.com

## How this service works

HostDeFi is a Solana DEX with a free token safety scanner. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, 1% flat fee.

## Output

Returns a JSON object with `ok: true`, the plan name (`x402agent`), a quota of 5,000 API calls, and the API key string (shown only once at provisioning time).

## 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": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "plan": "x402agent",
  "quota": 5000,
  "apiKey": "…shown once…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-api-key-provisioning-d142643a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rpc.hostdefi.com](https://www.zero.xyz/host/rpc.hostdefi.com/llms.txt)
