The next wave of API consumers isn't human — and APIs aren't ready.
Something fundamental shifted in early 2026. AI agents stopped being demos and started being customers. Not customers in the metaphorical sense — literally paying for API calls, autonomously, with real money, without human intervention. This changes who APIs are built for and how they're discovered, authenticated, and monetised.
For 20 years, the API consumer was a human developer. They found your API through Google, read your docs, signed up, entered a credit card, got an API key, and integrated it into their app. The entire API economy — from documentation to authentication to billing — is designed around this human-in-the-loop model.
Autonomous agents can't do any of that. They can't fill out signup forms, enter credit card numbers, or manage API keys. For an agent to use a new API, a human has to manually provision access. That's a bottleneck that defeats the purpose of autonomy.
In the 16 months between November 2024 and March 2026, a complete stack of agent commerce protocols emerged:
x402 (Coinbase): HTTP-native payments. An agent hits a 402 response, reads payment instructions, pays with USDC on Base, and gets the result. No signup, no API key, no account. The payment IS the authentication.
Google AP2 (Agent Payments Protocol): Focuses on authorisation — proving a user gave an agent specific authority to make a purchase. Designed for higher-value transactions where accountability matters.
Stripe Machine Payments: Preview program letting developers charge AI agents directly using USDC on Base through Stripe's PaymentIntents API. Bridges traditional payment infrastructure with agent-native protocols.
Visa Intelligent Commerce: Opening VisaNet to AI commerce agents. Agents can hold virtual Visa cards, execute purchases autonomously, and settle with other agents.
Coinbase Agentic Wallets: Agents autonomously acquire API keys, purchase compute, access data streams, and pay for storage. Launched February 2026.
If you build APIs, your next generation of customers won't read your docs, won't sign up, and won't use your dashboard. They'll discover your API through machine-readable files (agents.txt, llms.txt), negotiate payment automatically (x402), and use your service without ever creating an account.
To serve these customers, you need: machine-readable API descriptions (not just HTML docs), payment mechanisms that don't require human signup (x402 or equivalent), and discovery files that agents can find and parse (.well-known/agents.txt).
How does an agent find your API? Not through Google — agents don't browse search results. The emerging discovery mechanisms are:
llms.txt — A markdown file at your domain root that describes your API for LLM consumption. Over 844,000 sites have published one as of early 2026. When an LLM is asked "what screenshot APIs exist?", it reads these files.
agents.txt — Located at /.well-known/agents.txt, this file describes your API's capabilities, endpoints, pricing, and payment methods in a machine-parseable format. An agent discovering your API reads this to know how to use it.
Tool registries — OpenAI's plugin directory, OpenClaw's ClawHub, and similar marketplaces that list APIs as agent-usable tools.
nightglass was built agent-first. The default behaviour — calling the API without an API key — triggers the x402 payment flow. No signup, no account, no API key. An agent discovers nightglass through agents.txt, reads the payment terms, calls the endpoint, pays half a cent in USDC, and gets a screenshot. The entire interaction is two HTTP requests.
Human developers can still sign up, get an API key, and use Stripe billing. But the agent path is the default, not the afterthought.
If you're building or maintaining an API, the actionable steps are: publish llms.txt and agents.txt (costs nothing, takes an hour), evaluate x402 for your payment flow (the npm package and Python SDK handle the server side), and design your API responses to be machine-parseable (structured JSON errors, consistent schemas, clear status codes).
The APIs that make themselves accessible to agents now will capture demand that traditional APIs can't reach. The ones that wait will find themselves invisible to the fastest-growing segment of API consumers.
For the technical detail on how x402 actually works, see the x402 protocol explainer. For implementing agent discoverability files, the agents.txt and llms.txt guide covers both formats. For a concrete example of an API built agent-first, the nightglass overview.