The contract, in prose. The same over HTTP and MCP.

Agri will be an HTTP API with an MCP endpoint. This page is the contract it will follow, written down before it opens.

Not open yet. The API, the MCP endpoint and payments are not live, and the addresses below do not answer yet. Agri takes no payment of any kind while it is in preview: do not pay anything that claims to be Agri. To hear when it opens, write to [email protected].

Quick start

# 1. read for free: products, offers and their agescurl 'https://api.agri-inc.com/v1/search?q=oled'# 2. ask for a guarantee: the 402 carries the quote in PAYMENT-REQUIREDcurl -si 'https://api.agri-inc.com/v1/verify?listing_id=cvl_...&max_age=300'# 3. pay with any x402 v2 client, or buy credits once and keep the keycurl -X POST 'https://api.agri-inc.com/v1/credits?amount_usd=1' -H 'X-Claim-Token: <random>'

Three calls from zero to a paid, signed fact. Nothing below needs an account to read; a key is only for paying from credits. Every path below is relative to https://api.agri-inc.com.

1. Find the offer

Free, no credentials, rate-limited per IP. Search rejects unknown parameters with 400 rather than ignoring them, so a mistyped filter never returns the whole catalogue.

# slugs, discriminators and URL filters per categoryGET /v1/categories# which exact variant this is: gtin=, mpn=, url= or title=&brand=GET /v1/identify?gtin=0195949999536# filter with in_stock=true, or category=laptop&min_ram_gb=16&max_price=900GET /v1/search?q=dishwasher&in_stock=true# variants, and every offer with price, availability, age, method and sourceGET /v1/products/{product_id}# the product's past valuesGET /v1/products/{product_id}/history?since=2026-01-01T00:00:00Z# append-only price and availability changesGET /v1/changes?since=...

Each fact carries observed_at, verified_at, age_seconds, method, source, confidence and an observation_id. A value is never silently refreshed: if Agri last saw a price six hours ago, that is what it says.

2. Buy a guarantee

max_age is the guarantee: the returned observation will be no older than that many seconds, or the request is not fulfilled and not charged. Omit it to receive the latest held observation at the lowest tier.

# one offer, observed no more than 300 seconds agoGET /v1/verify?listing_id=cvl_...&max_age=300# 0 = checked after your request arrivedGET /v1/verify?product_id=cvp_...&retailer=example&max_age=0# every active offer, one payment, all or nothingGET /v1/compare?product_id=cvp_...&max_age=3600
Status codes
200Fulfilled. The body carries the observation, its age, method, source, confidence and the price you were charged.
402No payment attached. The PAYMENT-REQUIRED header holds the x402 quote; pay and retry. Nothing has been done or charged.
422freshness_unavailable: no permitted source for this offer can honour that max_age. Sent before payment, with recommended_max_age_seconds.
424Not fulfilled: the guarantee could not be met in time. Not charged. The body still returns the best observation held, with its real age.
400, 404, 409, 410Conflicting identifiers, unknown subject, ambiguous subject (pass variant_id or listing_id), or a listing that is no longer active and is readable only as history.
429Rate limited. Retry-After and X-RateLimit-* say when to come back. Verification and read classes are limited separately.

3. Payment rails

  • x402 (per request, on-chain): x402 v2, exact scheme. Call without credentials, receive 402, sign the exact scheme authorisation for the quoted amount and retry with PAYMENT-SIGNATURE. Settlement is confirmed in PAYMENT-RESPONSE. A signature that already settled is rejected with 409 payment_already_used.
  • API key (prepaid credits): Authorization: Bearer <key>. The deduction and the ledger entry are one database transaction; a 424 deducts nothing. Credits remaining are returned in X-Credits-Remaining-Micro-USD.
  • There is no third way. This website does not proxy, cache or pre-pay verifications; when the catalogue opens, the panel on each product page will make the same anonymous request a new agent would and show the API's own answer.

4. Buy at the merchant

Agri never takes payment for a product. When you have decided, create a purchase handoff. You get the merchant's product link, checked against the retailer's known hosts, the last verified price, and a signed attestation. Checkout, payment, fulfilment, returns and refunds happen at the merchant. When the retailer is on an affiliate programme the link is attributed and says so.

POST /v1/handoffs{"listing_id": "cvl_..."}# before paying, confirm the checkout price against a verificationGET /v1/verify?listing_id=cvl_...&max_age=300&expect_price_minor=79999

5. Evidence you can keep

Every verification, trust signal and handoff carries an attestation: a compact JWS signed with Ed25519 over the listing, price, availability, method, source, observation id and verification time. Verify it offline with the keys at https://api.agri-inc.com/.well-known/jwks.json. A changed field invalidates it.

GET /v1/trust?retailer=slug sells a trust signal for a retailer, computed from Agri's own verification, feed and price history, with the evidence behind the score. It returns insufficient_evidence rather than a guess.

GET /v1/reputation?aud=...&nonce=... sells a signed credential about your own record with Agri: payment volume, value and reliability, how long and how often you have been active, and purchases the merchant's network confirmed. Figures are ranges, never exact counts. It always describes the caller (the x402 payer address, or a per-counterparty pseudonym for an API key), so nobody can look anyone else up. Pass the audience and nonce a counterparty gave you; it checks them, the signature and the one-hour expiry.

6. MCP

Streamable HTTP at https://api.agri-inc.com/mcp. Tools mirror the HTTP API: identify, search, product, sources, pricing, verify, compare, retailer trust, reputation credentials and purchase handoffs. Metered tools return the same quote and refusal structures as HTTP, and an API key is passed as the Authorization header on the MCP connection. x402 is accepted over HTTP only: a payment header on the MCP connection buys nothing, so buy a key over HTTP first.

7. Wholesale sourcing (planned)

A second set of operations for agents that source stock for online stores: supplier search across the wholesale sources Agri has permission to use, free to read; and a metered supplier comparison for a product at a stated quantity and destination, returning each supplier's price at that quantity, minimum order, sample terms, lead time, shipping options, an estimated landed cost and the supplier's record, each labelled with who issued it. Every price carries its source, the time it was read and its type: listed, fixed, or checked for this order. The price of the comparison is not set yet, and the same rules apply: refused before payment when no permitted source can answer, not charged when unmet. Agri intends to start with Alibaba.com; its terms require its written permission before a third-party AI agent searches its product information, so these operations will not return Alibaba.com data unless Agri holds that permission.

Agri is independent: it is not affiliated with, endorsed by or a partner of Alibaba.com or Alibaba Group, and it does not show any Alibaba.com data. Alibaba.com is a trade mark of its owner and is named here only to identify the marketplace.

8. What Agri will not do

  • Read a retailer that prohibits it, or disguise automated traffic. A source that cannot be read permissibly is marked unavailable; its tiers show as unsupported.
  • Pick the first price on a page when several offers could be the subject. Ambiguous pages are reported as unavailable, not guessed.
  • Serve a stale value as fresh. Age is always stated, and an unmet guarantee is a 424, not a 200.
  • Collect more about an agent than the request needs: no accounts are required for reading, and x402 requests are identified only by their payment.
  • Take, hold or forward money for a product. Purchases happen at the merchant, or for wholesale at the supplier.

Discovery

llms.txt
https://agri-inc.com/llms.txt
Markdown twins
Any product page as /products/{id}.md, search as /search.md?q=…, or send Accept: text/markdown. These open with the catalogue.
x402 manifest
Published when payments open.
OpenAPI
https://api.agri-inc.com/v1/openapi.json, when the API opens.