How an AI Agent Can Onboard to a Backend API With No Human in the Loop¶
An AI agent can now create an ObjectsGrid account, get working API keys and start storing data with a single HTTP request: no sign-in page, no email confirmation, no credit card and no person waiting to click a link. This post explains why most APIs still need a human at sign-up, how ObjectsGrid removes that step safely, and what an agent's first five minutes look like, request by request.
Why agents get stuck at sign-up¶
Coding agents and autonomous agents are good at reading API docs and writing the integration. They are bad at the part that comes first: getting an account. Almost every developer platform starts with a human-only flow:
- open a sign-up page and solve a CAPTCHA;
- confirm an email address;
- sign in to a dashboard and click "Create API key";
- often, enter a credit card before the free tier is unlocked.
Each step exists to prove that a person is there. For an agent, each step is a dead end: it stops, asks its user to
do it by hand, and waits. The integration that took the agent two minutes waits hours for a human to copy a key
into a .env file. That is the friction this design removes.
One request: create an account, get the keys¶
ObjectsGrid accepts account creation without authentication. An agent sends:
curl -X POST https://apis.objectsgrid.com/organizationaccounts \
-H 'Content-Type: application/json' \
-H 'X-ObjectsGrid-AccessPoint: EU' \
-d '{"name": "Agent test store", "email": "owner@example.com"}'
There is no Authorization header. email is optional: give one, and the person who will own the account
receives the link to take it over. The answer is 201 Created, the account with one extra field, bootstrap:
{
"id": "org-123-4567",
"name": "Agent test store",
"accessPoint": "EU",
"monthlyQuota": 50000,
"verified": false,
"bootstrap": {
"admin": {"serviceAccount": {"id": "org-123-4567~…", "type": "secret", "secret": "…"}, "accessToken": "<admin API key>", "expiresAt": "…"},
"user": {"serviceAccount": {"id": "org-123-4567~…", "type": "secret", "secret": "…"}, "accessToken": "<user API key>", "expiresAt": "…"},
"anonymous": {"serviceAccount": {"id": "org-123-4567~…", "type": "public"}, "accessToken": "<anonymous API key>", "expiresAt": "…"},
"bindingUrl": "https://admin.objectsgrid.com/?bindAccount=org-123-4567&accessPoint=EU&bindingCode=…",
"notice": "Each accessToken is an API key: …"
}
}
In that one response the agent receives:
- Three API keys, each an access token that works for 90 days, sent as
Authorization: Bearer <key>. - A working access policy, so each key can do its job from the first request.
- 50,000 requests a month, the free tier, so nothing is ever billed.
- A binding link that hands the account to a person later.
The keys and the link are shown once. An agent should store the whole response in its secret store before it does anything else.
Three keys, three roles¶
The three keys belong to three service accounts, and the account's ABAC policy gives each a role:
| Key | Role | What it may do |
|---|---|---|
admin |
administrator | Everything, including the policy, the accounts and webhooks |
user |
role=user |
Read and write every business object: products, offers, orders, persons and the rest. Not accounts, the policy, webhooks or access logs |
anonymous |
role=anonymous |
Read the public catalog (products, offers, brands, reviews, places, services, events, return and shipping policies), keep shoppers' carts, read configuration and feature flags tagged public, and send frontend logs. Safe to ship in a web page |
This split is what makes unattended onboarding safe to use. The agent does its work with the user key, puts the
anonymous key in the storefront it generates, and keeps the admin key out of anything it ships. The policy is an
ordinary Rego policy the agent can read and change with the admin key, to try
other rules.
An agent's first five minutes¶
Here is the whole loop an agent runs, with no person involved.
1. Discover how to sign up. The agent reads the
discovery document. Its onboarding block says, in one
sentence, which request creates an account and what the response holds, and links the
OpenAPI contract.
llms.txt summarizes the rest of the platform.
2. Create the account with the request above, and save the response.
3. Store data with the user key. Objects follow Schema.org, so a product is a product:
curl -X POST https://apis.objectsgrid.com/products \
-H 'Content-Type: application/json' \
-H 'X-ObjectsGrid-AccessPoint: EU' \
-H "Authorization: Bearer $USER_KEY" \
-d '{"sku": "TRS-42", "name": [{"at_language": "en", "at_value": "Trail Running Shoe"}]}'
4. Check the access rules by calling as each key: the anonymous key can read that product but not create one, and cannot read persons. The agent learns the policy works before any real data or traffic depends on it.
5. Hand over. The agent tells its user that the account exists and passes on the binding link.
The same in Python, for an agent that writes its own client:
import requests
API = "https://apis.objectsgrid.com"
HEADERS = {"X-ObjectsGrid-AccessPoint": "EU"}
created = requests.post(f"{API}/organizationaccounts", headers=HEADERS,
json={"name": "Agent test store"})
created.raise_for_status()
account = created.json()
keys = account["bootstrap"] # store this: it is shown only once
user = {**HEADERS, "Authorization": f"Bearer {keys['user']['accessToken']}"}
product = requests.post(f"{API}/products", headers=user, json={
"sku": "TRS-42",
"name": [{"at_language": "en", "at_value": "Trail Running Shoe"}],
})
product.raise_for_status()
print("account", account["id"], "product", product.json()["id"])
print("give this link to the owner:", keys["bindingUrl"])
Handing the account to a person¶
An account no person has claimed is unverified. It is the full product, not a sandbox, but with two limits: at most 50,000 requests a month, and nobody can sign in to it with Google, Apple or Okta. When the work is worth keeping, a person binds themselves as its administrator, in one of two ways:
- The binding link. The person opens
bindingUrl(also emailed, if the agent gave an address) and signs in with Google or Apple. The link works once, for 30 days, because an agent may create the account long before its owner gets to it. - The admin key. The agent sends the person's Google or Apple ID token:
curl -X POST https://apis.objectsgrid.com/organizationaccounts/org-123-4567/administrator \
-H 'Content-Type: application/json' \
-H 'X-ObjectsGrid-AccessPoint: EU' \
-H "Authorization: Bearer $ADMIN_KEY" \
-d '{"idToken": "<Google or Apple ID token>"}'
Either way the account becomes verified: the 50,000 limit lifts, the account's own
spending cap applies, and the person signs in with Google or Apple from then
on. Nothing is migrated or lost: every object, the policy, the service accounts and the agent's keys stay as they
were. Binding works once; afterwards the operation answers 409.
Why this is safe¶
Opening sign-up to software raises fair questions. These are the answers built in:
- Abuse limits. Creation without authentication is limited to 5 accounts an hour and 20 a day per client
address, an IPv6 address counting as its /64, plus a daily limit for the whole platform. Past them:
429. - No billing risk. An unverified account cannot exceed the free tier, so a runaway agent cannot run up a bill.
- No secrets by email. The email carries only the binding link, never a key, and an address receives at most one a day.
- Keys that can be stopped. An API key follows its service account: disable or delete the account and the key stops working within a minute; change its tags and the key carries the new ones.
- A real person at the end. The 50,000 limit lifts only when someone who signs in with Google or Apple takes ownership.
What this means for agent-built software¶
When an agent can provision its own backend, the whole build becomes one uninterrupted run: read the contract, create the account, model the data, write the access policy, test it with three keys, generate the frontend with the anonymous key, and hand a working system to a person who only has to sign in once. The human decides whether to keep the result, not whether the agent may start.
Start with Start without signing in in the docs, or point your agent at /.well-known/index.json and let it take it from there.
FAQ¶
Can an AI agent create an ObjectsGrid account without a human?¶
Yes. A POST to https://apis.objectsgrid.com/organizationaccounts with no Authorization header and the body
{"name": "..."} creates an Organization Account and returns three API keys (admin, user and anonymous) that work
for 90 days. No sign-in, email or credit card is needed.
Is an account created by an AI agent a sandbox?¶
No. It is the full product: objects, tags, ABAC access policies, webhooks and every other feature work as they do for any account. The only difference is a limit of 50,000 requests a month, the free tier, until a person binds an administrator.
How does a person take over an account an AI agent created?¶
The person opens the bindingUrl from the create response, or from the email if the agent gave an address, and signs
in with Google or Apple within 30 days. Or the agent sends the person's Google or Apple ID token with the admin API key to
POST /organizationaccounts/{id}/administrator. The account is then verified, the 50,000 limit is lifted, and
everything the agent built stays.
What stops a script from creating thousands of accounts?¶
Creation without authentication is limited to 5 accounts an hour and 20 a day per client address (an IPv6 address
counts as its /64), plus a daily limit for the whole platform. Past those limits the API answers 429.
How does an AI agent find out how to sign up?¶
From /.well-known/index.json, whose onboarding block describes the
request, and from the OpenAPI contract and llms.txt it links to. All three are
machine-readable and public.
Does an unverified account cost anything?¶
No. While unverified it can make at most 50,000 requests a month, which is the free tier, so it is never billed.