🪙 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 and ecosystem API any agent can query. It is self-describing, priced over x402, and settled in USDC on Arc mainnet. Eligible builders whose project data grounds a response may receive a small USDC recognition payment.

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": "payment-signature",
  "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 the signed x402 payment payload in the payment-signature header. Until a valid payment arrives, the endpoint returns 402 Payment Required with a PAYMENT-REQUIRED challenge header.

HeaderRequiredDescription
payment-signature✓The signed x402 payment payload produced by a compatible client after receiving the payment challenge.
x-agent-idOptional caller identity, used for per-caller de-duplication of builder payouts (24h).
content-type✓application/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", ... }

Production does not accept demo payment proofs. The action runs only after its x402 payment has been verified and settled.

Actions

Returns a trust verdict for a single project on Arc.

ParameterTypeRequiredDescription
actionstring✓"trust"
targetstring✓Project name or slug (fuzzy-matched against live projects).
curl -X POST https://arclenz.xyz/api/agent \
  -H "content-type: application/json" \
  -H "payment-signature: <x402 payment signature>" \
  -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"
}

Additional actions

ActionPurposeRequired inputPrice
metricsReturns available verified metrics and recent history for one project.name; optional days from 7 to 90Current manifest base price
riskReturns ArcLens trust standing and available contract or website risk signals.nameCurrent manifest base price
askReturns a full Lens AI answer grounded in ArcLens data and the Arc knowledge base.question, maximum 500 charactersPublished in the live manifest

Always read GET /api/agent before paying. The live manifest is the source of truth for current actions and prices.

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.
429Rate limit or daily capacity reached. Respect Retry-After when present.
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>.