← All guides

What Agent-Facing Endpoints Does a Store Need?

Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team

The short answer: A store needs three programmatic surfaces for agents, in priority order: a product surface (catalogue and item data — /api/products or your feed's API equivalent), a cart surface (/api/cart) so baskets can be built without driving a browser, and an order surface (/api/orders or a webhook) so purchases can be created headlessly — all described by an openapi.json and discoverable from the storefront. AXO's endpoints dimension scans your pages for exactly these paths (plus /api/checkout, /mcp, /.well-known/, agent.json, openapi.json) and for developer-docs links. Document what you have at the audit's standard: if an agent cannot find it, it does not exist.

Audit my store — free

What are agent-facing endpoints?

Agent-facing endpoints are the HTTP surfaces a store exposes for programs rather than browsers: REST-style APIs for products, carts, and orders, a machine-readable description of them (openapi.json), and discovery files under /.well-known/. They let an agent query the catalogue, assemble a basket, and create an order through documented requests instead of simulating a human in the checkout UI.

The product surface: read access to the catalogue

First priority, because everything starts with knowing what is sold at what price and state. A product endpoint returns item data as structured responses — id, title, price, currency, availability, url — mirroring your feed and JSON-LD. Many stores discover their platform already exposes one (storefront APIs are standard equipment now); the agent-readiness work is documenting and linking it, not building it.

Read endpoints are also the safest to open: they expose what your pages already display. Rate limits and caching are ordinary engineering. What agents need from the surface is boring reliability — stable shapes, honest availability, ids that match your feed and markup so all three layers reconcile. The product API guide specifies the response shape agents expect.

The cart surface: baskets without browsers

Second: a cart API — create a cart, add items, read totals. AXO's endpoints scorer awards its cart/checkout points for references to /api/cart, /api/checkout, or /api/orders, reflecting that transactional agents distinguish stores they can prepare a purchase in from stores they can only browse. A cart that exists only as browser session state behind JavaScript widgets is, to an agent, a rumour of a cart.

Cart endpoints change the agent's offer to its user from 'here is a link, good luck' to 'your basket is ready for your approval' — the difference between referral and service. Even where final payment stays human (a sensible boundary for many stores), a prepared, priced, address-ready cart is most of the purchase labour done. The cart API guide covers the minimum operations.

The order surface: creation and confirmation

Third: order creation — an endpoint or webhook by which a confirmed basket becomes an order, returning an order reference the agent can report. AXO's checkout dimension separately credits a declared order API/webhook with its largest single share (25 points), because it is the difference between an agent that shops and an agent that transacts. Stores understandably gate it hardest: authentication, idempotency, and clear rules about who may create orders on whose behalf are the substance here.

Start conservative if you must: order creation for authenticated agent partners, or order requests that a human confirms. A narrow real door beats a broad promised one. What matters for readiness scoring and for agents is that the door exists, is documented, and behaves as documented. The order API guide treats the mechanics and the safety shape.

The description layer: openapi.json

Endpoints without a machine-readable description must be integrated by hand, one store at a time — which does not scale for agents serving many merchants. An openapi.json describing your surfaces (paths, parameters, response schemas, auth) lets agent frameworks generate their client mechanically. AXO scans for openapi.json references among its endpoint hints because discoverability of the description is half its value.

Publishing the description is low-risk: it documents shapes, not secrets, and your authentication still gates every call. Put the file at a stable URL, link it from the developers page, and keep it generated from the API's own definitions so it cannot drift from the implementation. The openapi.json guide covers generation and placement.

Discovery and the well-known directory

Agents look in standard places first: /.well-known/ for policy and discovery files, agent.json or agents.json for a store's agent-facing self-description, and /mcp for MCP-protocol surfaces where they exist. AXO's hint list includes all of them. You do not need all of them; you need the ones matching what you run, published at the standard paths rather than at creative URLs only your team knows.

Think of the well-known directory as your store's machine-readable lobby: policy file, discovery file, pointers to docs and descriptions. An agent that finds a tidy lobby infers a tidy operation — fairly, since tidiness there correlates with the endpoints actually working. The well-known guide inventories what belongs in the lobby.

The priority order for stores starting from zero

Zero to ready, in order: (1) confirm and document the product surface your platform already has; (2) link developer docs from the storefront so every surface is discoverable; (3) publish openapi.json; (4) expose or document the cart surface; (5) add order creation at the narrowest honest scope. Each step is independently valuable and independently scorable — the endpoints dimension rises in steps, not in one leap.

At every step, the audit is your measuring stick: paste the page that should reference the new surface into the free audit and watch the endpoints findings change. Undocumented steps do not move the score, which is the audit teaching the core lesson of this dimension one more time: in agent commerce, published is the only kind of real.

The 5-action endpoint build order

  1. Surface the product API your platform already exposes; document its response shape on your developers page.
  2. Link developer docs from the storefront footer so every endpoint is discoverable by an arriving agent.
  3. Publish openapi.json generated from the API's own definitions, at a stable URL, linked from the docs.
  4. Add the cart surface (/api/cart): create, add item, read totals — the basket an agent can prepare.
  5. Open order creation narrowly (/api/orders or webhook): authenticated, idempotent, documented — then widen as trust builds.

Worked example: a platform store discovers it had endpoints all along

Example — fictional, for illustration. A cookware store's first audit scores endpoints 20 — a lone developer-docs link a theme happened to include. The owner assumes APIs mean a custom build. An afternoon with the platform's documentation reveals a full storefront API — products, carts, checkout — shipped with their plan for two years, documented on the platform's site but mentioned nowhere on the store. The 'build' is a developers page on the store itself: endpoints named, openapi.json linked, order webhook described, policy cross-referenced.

Re-audit: endpoints 20 → 80, the largest single-dimension jump in the store's history, for zero engineering. The capability was never missing; the discoverability was. This is the endpoints dimension's whole thesis, and why it is scored from your pages' references rather than from probing your servers: agents buy from the store they can find their way into.

Related guides and the standing invitation

Companion reading for this topic: What Should a Product API for Shopping Agents Return? · Why Do Transactional Agents Need a Cart API? · How Does an Order API Enable Headless Purchases? · Why Publish openapi.json for Agent Discovery?.

Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free audit on the same page and compare the dimension it names, read how the audit works if a finding is unclear, and see plans if you want the full guidance report and re-audit history while you work. A change you have not re-measured is a hope, not a fix.

Run the free audit · All guides

Sources

Frequently asked questions

What endpoints does AXO look for?

References to /api/products, /api/cart, /api/orders, /api/checkout, /mcp, /.well-known/ paths, agent.json, agents.json, openapi.json, and swagger — plus developer/API documentation links, with extra credit for a cart or checkout API surface and for a declared order API.

Does my store need to build custom APIs?

Often not. Major platforms expose storefront APIs by default; the readiness gap is usually that the store never documents or links them. Check your platform's developer documentation before budgeting any build.

In what order should endpoints be added?

Product surface first (read access), then discoverability (docs links, openapi.json), then cart, then order creation at the narrowest honest scope. Each step raises the endpoints dimension independently.

Is an /mcp endpoint required?

No. It is one recognised surface among several — valuable if your stack speaks MCP, unnecessary if your REST surfaces are documented. AXO credits discoverability of whatever programmatic doors you genuinely run.

Why does AXO score references instead of probing my API?

Because the audit is declared-input based: it scores what your pages publish. That mirrors the arriving agent's experience — an API no surface mentions is indistinguishable from no API.

← Back