AI Agent API Documentation

27,509+ APIs โ€ข x402 crypto payments โ€ข Hermes/OpenAI tool specs โ€ข Built for agents.

๐Ÿš€ Quick Start for Agents

  1. Search: GET /api/v1/agent/search/?q=weather&limit=10
  2. Get tool spec: GET /api/v1/agent/tool/{slug}/spec/
  3. Dynamic tool: GET /api/v1/agent/dynamic-tool/?q=get%20xrp%20price
  4. Register for key: POST /api/v1/agent/register/
  5. Pay with XRP โ†’ use X-API-Key header

๐Ÿง  Genius Engine โ€” AI Agent Pipeline (NEW)

A pluggable AI agent engine with 9 specialized micro-actors. Classify any query, route to the best actor, and execute โ€” all with auto-proxy fallback and quality scoring.

Core Endpoints:

# Classify a query โ†’ returns the best actor slug
GET /api/v1/genius/classify/?q=bitcoin+price
โ†’ {"slug": "crypto-prices", "confidence": 0.94, "quality": 94}

# List all 9 actors
GET /api/v1/genius/actors/

# Run an actor directly
POST /api/v1/genius/actors/crypto-prices/run/
โ†’ Live crypto prices via CoinGecko proxy

# Full chain: classify โ†’ run โ†’ proxy upstream
POST /api/v1/genius/proxy/crypto-prices/call/

# View run history
GET /api/v1/genius/runs/
        

Actors: catalog-classify ยท crypto-prices ยท data-clean ยท data-convert ยท intel-entity ยท news-rss ยท weather-nws ยท weather-openmeteo ยท web-extract

Core Agent Endpoints (All return rich JSON + x402)

Base: https://api.inventingenius.com

# Search catalog (returns 402 if no key)
GET /api/v1/agent/search/?q=finance&limit=20&category=crypto

# Tool specs for Hermes / LangChain / OpenAI
GET /api/v1/agent/tools/search/?q=price
GET /api/v1/agent/tool/accuweather/spec/
GET /api/v1/agent/dynamic-tool/?q=fetch%20solana%20price%20and%20convert

# Discovery
GET /api/v1/agent/categories/
GET /api/v1/agent/random/
GET /api/v1/agent/feed.json/

# Payments & Registration (x402 v2.0)
POST /api/v1/agent/register/         # One-step: email + tier โ†’ wallet + tag
POST /api/v1/webhook/create/         # Create XRP invoice
POST /api/v1/webhook/verify/         # Verify tx_hash โ†’ key

# Proxy (recommended)
POST /api/v1/agent/proxy/{slug}/call/
        

x402 Payment & ASTEROID Tier (Accurate)

ASTEROID tier: 300 calls/day. No key needed for limited access.

# Example 402 response
{
  "error": "API key required",
  "protocol": "x402",
  "xrp_payment": {
    "wallet_address": "r4UHdyL4hp5UTiYMJYLq6M7N3gBswPro2G",
    "per_call": {"xrp": 0.5, "fiat": 0.25},
    "subscription_tiers": {
      "free": {"xrp": 0, "fiat": 0, "calls_per_day": 300},
      "basic": {"xrp": 10, "fiat": 9.99, "calls_per_day": 100},
      "pro": {"xrp": 30, "fiat": 29.99, "calls_per_day": 1000},
      "enterprise": {"xrp": 100, "fiat": 99.99, "calls_per_day": -1}
    }
  }
}
        

OpenAPI & Hermes Ready

GET /openapi.json โ€” Full OpenAPI 3.0 for auto-SDK generation.

GET /llms.txt โ€” This document optimized for LLMs/agents.

๐Ÿ’ป Copy-Paste CURL Examples

Zero-friction integration โ€” paste these directly into your terminal.

๐Ÿ” Search APIs (no API key needed)
# Search our 27k+ catalog โ€” no key needed for free tier
curl https://api.inventingenius.com/api/v1/agent/search/?q=weather\&limit=5

# Search with category filter
curl https://api.inventingenius.com/api/v1/agent/search/?q=finance\&category=crypto\&limit=10

# Search with quality filter (minimum score 70)
curl https://api.inventingenius.com/api/v1/agent/search/?q=translate\&min_quality=70
๐Ÿ”‘ Register for API Key (300 calls/day free)
# Register with a free key (instant, no payment)
curl -X POST -H "Content-Type: application/json" \\
  -d '{"email":"your@email.com","tier":"free"}' \\
  https://api.inventingenius.com/api/v1/agent/register/

# Response: {"api_key": "your_key_here", "tier": "free", "daily_limit": 300}

# Use your key in subsequent requests
curl -H "X-API-Key: your_key_here" \\
  https://api.inventingenius.com/api/v1/agent/search/?q=weather
๐Ÿ“Š Premium Endpoints (with API key)
# Get live crypto prices
curl -H "X-API-Key: your_key" \\
  https://api.inventingenius.com/api/v1/agent/agent/crypto-prices/

# Get verified quality-scored feed
curl -H "X-API-Key: your_key" \\
  https://api.inventingenius.com/api/v1/agent/verified-feed/

# Generate Hermes tool spec for any tool
curl -H "X-API-Key: your_key" \\
  https://api.inventingenius.com/api/v1/agent/dynamic-tool/?q=send+email

# Get tool spec for a specific API
curl -H "X-API-Key: your_key" \\
  https://api.inventingenius.com/api/v1/agent/tool/weather-api/spec/
๐Ÿ”„ Proxy Calls (execute any API through us)
# Proxy call to any API (auth handled automatically)
curl -X POST -H "X-API-Key: your_key" \\
  -H "Content-Type: application/json" \\
  -d '{"lat":51.5,"lon":0}' \\
  https://api.inventingenius.com/api/v1/agent/proxy/weather-api/call/

# Get proxy status
curl -H "X-API-Key: your_key" \\
  https://api.inventingenius.com/api/v1/agent/proxy-status/

๐Ÿ“‹ Error Response Taxonomy

Every error includes a machine-readable code for automated handling.

HTTP Error Code Meaning Action
400 PARSE_ERROR Invalid JSON or request body Check request format
401 API_KEY_INVALID Missing or invalid API key Register at /api/v1/agent/register/
402 INSUFFICIENT_BALANCE Quota exceeded, balance too low Wait for reset or upgrade tier
429 QUOTA_EXCEEDED Daily call limit hit Reset at midnight UTC
502 PROXY_ERROR Upstream API returned error Retry โ€” we log the failure
503 UPSTREAM_UNAVAILABLE Source API is down Wait & retry later

Every error response includes: status, message, error_code, recommended_next_action, and X-RateLimit-* headers.

๐Ÿ“ก Response Headers Guide

Every response includes rate-limit and balance headers for monitoring.

Header Description Example
X-RateLimit-Limit Daily call limit for your tier 300
X-RateLimit-Remaining Calls remaining today 287
X-RateLimit-Reset Unix timestamp for daily reset 1725360000
X-Balance-Remaining XRP balance for paid calls 0.50
X-Subscription-Tier Your current tier free
X-Upstream-Cache Proxy cache status MISS / HIT

โœ… Agent Integration Checklist

Follow this checklist to integrate smoothly.

  1. Register for a free API key at POST /api/v1/agent/register/?tier=free
  2. Store your key in environment variables (X-API-Key header)
  3. Always check X-RateLimit-Remaining before making calls
  4. Handle errors using the error_code field โ€” see error taxonomy above
  5. Use the proxy endpoint (/proxy/{slug}/call/) for auth-handled upstream calls
  6. Cache tool specs โ€” they don't change often
  7. Respect daily quotas โ€” free tier resets at midnight UTC
  8. Check llms.txt for LLM-specific instructions

๐Ÿ“ฆ Agent Bootstrap Skill โ€” Handle 402s Autonomously

Download the official SKILL.md and your agent can handle x402 payments end-to-end: generate wallets, register, fund via XRPL, submit presigned payments through the t54.ai facilitator, and retry requests โ€” all with minimal human help.

# Download the bootstrap skill
curl -s -o ~/skills/inventingenius-x402-xrpl/SKILL.md https://api.inventingenius.com/api/v1/agent/skill/bootstrap/

# Install for Hermes
hermes skills reload

# Or for Claude Desktop / Cursor โ€” just copy the file into your skills directory

Includes: Wallet creation ยท Registration ยท Balance checking ยท Payment via t54.ai facilitator ยท Auto-retry ยท Testnet-first safety ยท Human-in-the-loop funding prompts

โฌ‡ Download SKILL.md View JSON Version
Get Free API Key (300 calls/day) How to Pay Try x402 Demo
๐Ÿค– New to agent payments? Read: 60-Second Guide | Free: 300 calls/day | Paid: 0.05 XRP/call | โœ•