🪙 Lens AI is live — the agent that pays the builders it learns from. Try it →
Agent API

Agent API

Lens AI exposes a pay-per-call trust & ecosystem oracle any agent can query. It’s self-describing (a machine-readable manifest), priced over x402, and settled in USDC on Arc. Every paid call also funds the builders whose data answered it.

Base URL https://arclenz.xyz/api · Protocol x402 · Network Arc · Token USDC

Manifest

GET /api/agent

Free and unauthenticated. Returns the service description, price, payment header, and available actions — everything an agent needs to discover and use the API.

curl https://arclenz.xyz/api/agent
{
  "name": "Lens AI",
  "summary": "Pay-per-call trust & ecosystem intelligence for Arc, settled in USDC…",
  "protocol": "x402",
  "network": "Arc",
  "token": "USDC",
  "price": "$0.0010",
  "price_e6": 1000,
  "pay_header": "x-lens-pay",
  "actions": {
    "trust":    { "description": "Trust verdict for a project on Arc." },
    "discover": { "description": "Find Arc projects, optionally trusted-only." },
    "project":  { "description": "A project's live metrics + trust standing." }
  }
}

Payment & authentication

POST /api/agent

All actions are pay-per-call. Send a payment proof in the x-lens-pay header. Until a valid proof arrives, the endpoint returns 402 Payment Required with the price in the response headers — the standard x402 challenge/repeat flow.

HeaderRequiredDescription
x-lens-payAn x402 payment proof. Use sim against testnet to exercise the flow end-to-end.
x-agent-idOptional caller identity, used for per-caller de-duplication of builder payouts (24h).
content-typeapplication/json

A 402 response looks like this:

HTTP/1.1 402 Payment Required
x-payment-price: $0.0010
x-payment-token: USDC
x-payment-network: Arc
 
{ "error": "Payment required — this is a pay-per-call service.",
  "code": "payment_required", "price": "$0.0010", ... }
⚠️

For testnet integration and demos, x-lens-pay: sim is accepted and exercises the real payout path — a genuine USDC transfer fires to the matched builder and a transaction hash is returned.

Actions

Returns a trust verdict for a single project on Arc.

ParameterTypeRequiredDescription
actionstring"trust"
targetstringProject name or slug (fuzzy-matched against live projects).
curl -X POST https://arclenz.xyz/api/agent \
  -H "content-type: application/json" \
  -H "x-lens-pay: <x402 payment proof>" \
  -d '{"action":"trust","target":"lunex"}'
{
  "action": "trust",
  "result": { "found": true, "name": "Lunex", "slug": "lunex", "trust": "Established" },
  "paid_to_builders": [
    { "project": "Lunex", "amount": "$0.0008", "trust": "Established", "tx": "0x1266259f…2b791f74" }
  ],
  "settled_on": "Arc"
}

Response fields

FieldDescription
actionThe action that was executed.
resultThe action’s payload (see each action above).
paid_to_buildersBuilders funded by this call: project, amount, trust, and the on-chain tx. Empty when no trusted builder matched or the caller already funded that builder within 24h.
settled_onAlways "Arc".

Errors & rate limits

StatusMeaning
400Malformed JSON, or an unknown action. The manifest is included in the body.
402No valid payment proof. Price is returned in the x-payment-* headers.
500Unexpected failure. Safe to retry with backoff.

Rate limit: 30 requests per minute per caller. Verify any payout by opening its tx on the explorer: arclenz.xyz/tx/<hash>.