INDEX / BLOG / AGENTS CAN NOW TRY AN API BEFORE...
2026-10-12
FROM THE REGISTRY

Agents can now try an API before anyone signs up

BY DYLAN ROY · OCTOBER 12, 2026 · UPDATED OCTOBER 13

Give an AI agent a task that needs an API it has never used and it gets surprisingly far. It finds the API, reads the docs, writes the request, and then hits the same wall every time: the API wants a key, a key belongs to a person, and the person has to stop what they're doing and sign up. Half the time the session ends right there, with "please create an account and paste your key here."

As of today, storefronts on APIDirectory can take that wall down. A seller switches on trial keys, and an agent that arrives without a key can get a real one with a single request: no signup, no email, no card. It does the task. When it's done, or when the trial runs out, it hands its human a link. The human confirms an email, and the same key keeps working on the seller's free plan. Whatever the agent built doesn't change.

We switched it on first for our own geocoding API, geocode.net. To check that an agent finds its own way through, we gave Claude one tool, a plain HTTP client, and the kind of request a person would type, which names the API and nothing else:

PROMPT
Find the lat/lon of 1600 Pennsylvania Ave NW, Washington DC using geocode.net
WHAT CLAUDE DID · 7 REQUESTS · 24 SECONDS
GETgeocode.net200
Let me check the docs for the API.
GETdash.geocode.net/docs200
GETgeocode.net/llms.txt200
GETdash.geocode.net/openapi.json200
GETapi.geocode.net/v1/geocode?q=1600 Pennsylvania Ave NW, Washington, DC401 key_required
The API needs a key, and it offers a free trial key (no account, no card, never charges). I'll get one to run this lookup.
POSTdash.geocode.net/trial201 trial_key_issued
GETapi.geocode.net/v1/geocode?q=1600 Pennsylvania Ave NW, Washington, DC + X-API-Key: <trial key>200 · x-gw-remaining: 99
CLAUDE

geocode.net puts 1600 Pennsylvania Ave NW, Washington, DC 20500 at:

  • Latitude: 38.897675
  • Longitude: -77.036545

This is a rooftop-level match, the most precise type the service offers, with a confidence score of 1.0. It comes from the National Address Database.

About the API key: The geocode.net API won't answer without a key. I got a free trial key, which needed no account, email or card and can't charge anyone. It's good for 100 lookups until 2026-10-20, and this lookup used 1. If you want to keep the key, you can claim it at https://dash.geocode.net/claim/39.<token> by confirming an email. That moves it to the free plan with 10,000 lookups a month. If no one claims it, it just stops working after it expires.

Claude Opus 5.5 through the API on October 13, with no system prompt, no memory and one tool, a plain HTTP client. Every request it made is listed, with the two notes it wrote along the way; the answer is verbatim. The claim token is shortened here.

It read the site, the docs, llms.txt and the OpenAPI spec, called the API, and got a 401 that said where to get a trial key. It took one, made the call, and only then mentioned that there was something to keep. Nothing in the prompt said anything about keys, trials or signing up.

Claude did the same in an ordinary claude.ai chat on launch evening, and that key has since been claimed and moved to the Free plan. The rest of this post is the same flow by hand, a real session against production with nothing but curl.

An agent with no key

The first thing an agent tries is the call itself. The gateway's answer used to be a polite dead end. Now it says where to go:

$ curl -s 'https://api.geocode.net/v1/geocode?q=1600+Pennsylvania+Ave+NW+Washington+DC'

{"error": "key_required",
 "detail": "pass X-API-Key — get one at https://dash.geocode.net/, or POST
            https://dash.geocode.net/trial for a trial key with no signup",
 "trial": "https://dash.geocode.net/trial"}

One POST, no body:

$ curl -s -X POST https://dash.geocode.net/trial

HTTP/2 201
{"status": "trial_key_issued",
 "key": "apigw_00ab…01eb",
 "base_url": "https://api.geocode.net/",
 "auth_header": "X-API-Key",
 "allowance": 100, "unit": "request", "expires": "2026-10-19",
 "claim_url": "https://dash.geocode.net/claim/29.<token>",
 "claim": "Give claim_url to your user. They confirm an email and this same key moves
           to the Free plan (10,000 requests/mo), so nothing you built has to change.",
 "mcp_endpoint": "https://mcp.geocode.net/", ...}

That's a real gateway key, metered and rate-limited like any other, on a hidden plan: 100 requests that never refill, for seven days. The agent uses it straight away:

$ curl -s -D - 'https://api.geocode.net/v1/geocode?q=1600+Pennsylvania+Ave+NW+Washington+DC' \
       -H "X-API-Key: $GEOCODE_API_KEY"

HTTP/2 200
x-gw-plan: trial
x-gw-limit: 100
x-gw-remaining: 99
x-gw-trial-ends: 2026-10-19
x-gw-claim: https://dash.geocode.net/claim/29.<token>

{"formatted": "1600 Pennsylvania Ave NW, Washington, DC 20500",
 "location": {"lat": 38.897675, "lng": -77.036545},
 "accuracy_type": "rooftop", "source": "nad", ...}

Every response says what's left and where the key becomes someone's. Agents read headers, so the claim link is always in reach, not only at the end.

Running out

We spent the rest of the allowance with one batch of 99 addresses and asked for one more:

HTTP/2 429
{"error": "quota_exceeded",
 "detail": "this trial key has used the 100 requests it came with. Your user can keep
            it working: they open the claim link and confirm an email",
 "limit": 100, "used": 100, "plan": "trial",
 "claim": "https://dash.geocode.net/claim/29.<token>"}

This is the moment the whole thing is built for. By now the agent's code works; it has geocoded real addresses and knows the response shape. What it asks its human for isn't "sign up for a geocoding service." It's "click this to keep the thing I just built running." The claim page says what the agent used and where the key goes. The human types an email, clicks the link we send, and lands on their account with the key already on it, now on the free plan's 10,000 requests a month. Seven days later the key would have stopped with a 403 trial_expired that carries the same link, and a lapsed trial can still be claimed.

The geocode.net claim page. Kicker: agent trial key ending 01eb. Heading: Keep this key working. Text: An AI agent has been calling geocode.net for you on a trial key. It has used 100 of 100 lookups, and stops working on 2026-10-19. Confirm your email and the same key moves to the Free plan, 10,000 lookups a month. Below, one email field and a button: Email me the link.
What the human sees when the agent hands over the claim link: what the trial used, where the key goes, and one email field. (geocode.net has since renamed its unit from requests to lookups.)

Finding the trial in the first place

An agent can come in through several doors, and each one now mentions the trial:

What stops this from being free geocoding for everyone

Handing out keys to anyone who asks is the obvious objection, and it was the first thing we built around:

HTTP/2 429                      (a batch of 150 on a key with 99 left)
x-gw-cost: 0
{"error": "allowance_exceeded",
 "message": "this request costs 150 units and the key has 99 left; send fewer items,
             or move to a larger plan"}

That fix wasn't only for trials. The same overshoot was open on every capped plan, free ones included, and it's closed now.

If you sell an API

Trial keys are a switch in your storefront's console, under Plans. You set the allowance (in your own units, for the whole trial) and how many days it lasts, and you can see how many trials were issued and how many were claimed. Trial calls reach your origin like any other call. If your origin bills per item through X-Gw-Units, honour X-Gw-Remaining before you switch it on. It's off by default, because anonymous traffic is your cost and your decision.

The Agent trial keys panel in the geocode.net storefront console: on, 2 issued and 1 claimed in 30 days; the trial URL dash.geocode.net/trial; allowance per trial key 100 lookups; 7 days; a checked box, Offer trial keys to agents; and a Save trial button.
The seller's side of it, in configure → Plans: an allowance, a number of days, and a checkbox. The counts are geocode.net's first hours.

The bet is simple. More and more of the first calls to an API come from agents, and an agent that can't get a key leaves. One that can will often finish the job before anyone has decided whether to sign up. When the person shows up, the decision is already made.

What's next

An MCP client fixes its key in config, so today an agent that starts a trial through start_trial has to reconnect with the key, or switch to plain HTTP. The lazier version would mint the trial on the first keyless tool call and tie it to the MCP session, so the agent never handles a key at all. After that comes OAuth for connectors, which turns the claim step into a "Connect" button. We'll report back on how many trials get claimed once there's something to count.

Sell your API on APIDirectory

A storefront gives your API docs generated from your spec, instant keys, metered billing on your own Stripe, a status page, an optional MCP server for agents, and now trial keys. $79 a month flat, and you keep all of your revenue.

START A STOREFRONT →SETUP GUIDE →