An AI agent can create its own API key, verify token holdings across 32 blockchains, generate discount codes for customers, buy more credits with USDC, and onboard new merchants. No human touches anything at any step. Here is how it works across four integration surfaces.

What an agent does with on-chain verification

A shopping agent is helping a user find deals. The user holds UNI tokens in their wallet. The agent queries the InsumerAPI merchant directory and finds three stores that offer discounts to UNI holders. It checks the user's wallet against each merchant, finds 15% off at one of them, and generates a signed discount code. The user gets a code, the merchant gets a customer, and the agent never saw the user's actual token balance. Just a yes or no.

That is one use case. Here are more:

All of these work because the API was designed for agents, not humans. Boolean results, not balance dumps. Signed proofs, not trust-me responses. Programmatic everything, not web forms. For a deeper look at why agents need wallet verification APIs alongside payment rails, see our breakdown of the verification layer.

The full autonomous cycle

An agent does not need a human to visit a website, fill out a form, or copy-paste a key. The entire lifecycle is programmatic:

  1. Create a key. The agent calls the key creation endpoint with an email and app name. It gets back an API key with 10 free verification credits. One HTTP request. The email is the only human-linked input, and the agent can use any valid address.
  2. Discover. The agent queries the merchant directory and token registry. These are free read endpoints with no credit cost.
  3. Verify. The agent runs on-chain attestations or generates signed discount codes. Each verification costs one credit.
  4. Verify the domain. If the agent is onboarding a merchant, it requests a verification token, places it via DNS TXT record, HTML meta tag, or file, then triggers the check. The merchant's website is now verified.
  5. Refuel. When credits run low, the agent sends USDC on any supported chain to the platform wallet, then calls the buy-credits endpoint with the transaction hash. 25 credits per USDC. No approval, no invoice, no human.
  6. Repeat. The agent keeps verifying, keeps buying credits, keeps operating. Indefinitely.

This is the loop that makes autonomous agents viable. Discovery, verification, and payment all happen through the same API. The agent funds itself with on-chain USDC and never runs out of credits unless it chooses to stop. For the full 10-step breakdown of this autonomous agent API lifecycle, see our detailed walkthrough.

Four ways to connect

The AI agent ecosystem is fragmented. Claude Desktop uses MCP. LangChain agents use Python tools. OpenAI GPTs use Actions. Custom agents call REST endpoints directly. InsumerAPI covers all four. Same 26 endpoints, same ECDSA-signed results, same 32 blockchains. The only difference is the transport layer.

1. MCP Server

Best for: Claude Desktop, Cursor, Windsurf, and any MCP-compatible agent framework.

The Model Context Protocol is an open standard for connecting AI models to external tools. An MCP server exposes typed tools that the model can call directly. No HTTP code in your agent. No JSON parsing. The model sees the tools natively and knows what arguments to pass.

Install:

npx -y mcp-server-insumer

Add this to your Claude Desktop config:

{
  "mcpServers": {
    "insumer": {
      "command": "npx",
      "args": ["-y", "mcp-server-insumer"],
      "env": {
        "INSUMER_API_KEY": "insr_live_..."
      }
    }
  }
}

26 tools covering every endpoint: verification, discovery, wallet trust profiles, EAS attestations, Farcaster identity, credits, and full merchant onboarding.

View on npm

2. LangChain SDK

Best for: Python agents built on LangChain, LangGraph, or any framework that uses LangChain tools.

Install:

pip install langchain-insumer

26 tools covering the full API: attest, wallet trust, batch trust, compliance templates, verify, list merchants, merchant management, credits, ACP/UCP commerce, and more. Each tool has a description that the LLM reads to decide when to call it. Pass the API key via the INSUMER_API_KEY environment variable.

View on PyPI

3. OpenAI GPT

Best for: Custom GPTs in ChatGPT, or any agent that consumes OpenAPI specs.

InsumerAPI publishes a full OpenAPI 3.1 spec at insumermodel.com/openapi.yaml. Paste the URL into GPT Actions, set the API key as a custom header, and the GPT can call any endpoint. A pre-built GPT called InsumerAPI Verify is already live in the GPT Store.

4. Direct REST API

Best for: Any language, any framework, any custom agent that can make HTTP requests.

The REST API is the foundation that all three integrations above are built on. Any agent that can make an HTTP request can call it. Every request needs an X-API-Key header. The response format is consistent: { "ok": true, "data": {...} } on success, { "ok": false, "error": {...} } on failure.

For agents that auto-discover APIs, InsumerAPI publishes four machine-readable files at the site root:

An agent that crawls a site and reads llms.txt will find the API, understand what it does, and know how to get started. No documentation lookup required.

Which one should you use?

For the full verification API guide covering all 26 endpoints, integration patterns, and pricing, see the AI Agent Verification API overview. You can also try a live XRPL attestation demo to see signed results in action.

No portal visit required

Every integration starts with an API key. An agent creates its own by calling a single endpoint. Ten free verification credits are included. When those run out, the agent sends USDC on-chain and buys more. The entire cycle is programmatic. No browser, no signup form, no human approval. For how this fits into agentic commerce, see how wallet auth works before an agent pays.

Pick the integration that matches your stack and let your agent verify on-chain holdings across 32 blockchains.

Get a free API key in 30 seconds

InsumerAPI is free to start. Pick the integration that matches your stack and run your first on-chain verification today.

View Developer Portal