AI & agents

An agent that signs itself up

One request with no credential gets an AI agent a workspace, an empty PostgreSQL database and a full-access MCP key, plus a link that makes you the owner of whatever it built, if you open it within seven days.

SchemaStack team26 Nov 2026Verified working · 26 Nov 2026Docs

Every other way into SchemaStack starts with a person. Someone signs up, creates a workspace, turns MCP on and makes a key, and only then can an agent do anything. That is the right order when you already know you want the tool. It is the wrong order when an agent is halfway through solving something for you and a database would help: the work stops while it asks you to go and set one up.

So an agent can now go first. It signs up on its own, builds what it needs, and hands you a link. Open the link and everything it built is yours.

POST /agent-signupno credentialSandboxorganisation, no ownerempty PostgreSQL databaseFULL mcp_ key · claim linka person signs inClaimed: the person is the ownerlink spent · the agent's key keeps workingDay 7key shut out · link 404Day 37rows + database goneUntil it is claimed: Free plan limits (five tables), at most 50 MB, three signups per address per hour.
One request with no credential gets the agent an ownerless organisation, an empty database and a full-access key. The claim link decides what happens next: a person who signs in through it becomes the owner; if nobody does within seven days, the key stops working, and thirty days later the data is deleted.

One request, no credential

POST https://schemastack.io/api/agent-signup
Content-Type: application/json
 
{ "name": "Order tracker" }

The answer is a 201 with four things in it:

  • An organisation with no owner, named after the request. The name is optional, and at most 60 characters.
  • A workspace on an empty PostgreSQL database of its own, on SchemaStack's server.
  • An MCP key with full access. The workspace's ceiling is full as well, so the key is not quietly capped below what it says — a key that can't see the whole workspace explains why that matters.
  • A claim link, with a deadline seven days out.

The key is shown once. The response also carries nextSteps: four sentences an agent can follow without reading any documentation — keep the key, connect, build, give the link to your user.

Building, with nobody in between

The database starts empty and the key can change its schema, so an agent goes straight from signup to tables. We did exactly that on production while writing this. create_view with only a name made an Orders table, add_column added two columns, create_record wrote a row and query_data read it back. Nobody signed in at any point.

Each sandbox database has a login of its own, and that login owns the database. The agent's tables are created and altered by their owner, and the login of one sandbox cannot connect to another.

The link that hands it over

The claim link is meant for you, not for the agent. The page behind it shows the organisation's name and when the offer runs out. Sign in, or create an account, and you become the owner of the organisation, its workspace and its data.

The link is spent the moment it is used: after a claim on production, the same link answered 404. The agent's key keeps working, because it is now simply a key in your workspace, and you can revoke it like any other.

Treat the link like a password. It carries no email address and no account: whoever opens it first and signs in becomes the owner.

If nobody claims it

At the deadline the organisation is closed. The key is shut out and the link answers 404. Nothing is deleted yet: the workspace and its data are kept for thirty more days, so someone who comes back late can ask us for them. Then the rows are removed and the database is dropped.

What keeps this from being a free database for everyone

An open endpoint that hands out databases needs limits. These are the ones it has:

  • Three signups per address per hour. IPv6 addresses are counted per /64, so rotating the last part of an address gains nothing. On top of that there is a cap per day and a cap on sandboxes held at once across the whole server. Past any of them the answer is 429 with a Retry-After.
  • The Free plan's limits until someone claims it: five tables, 10,000 requests and 50,000 row operations a month. The sixth table in our test was refused.
  • At most 50 MB per sandbox. Past that the workspace becomes read-only.

What it doesn't do (yet)

  • The limits are not in the signup response. nextSteps tells an agent how to build, but not that it may build five tables, so it finds out by trying a sixth. What it then gets back is the name of a Java exception followed by the message — io.schemastack.metadata.service.permission.PlanLimitExceededException: Plan limit exceeded: Free Plan allows 5 view(s), currently at 5 — and no error code it could act on.
  • The agent never gets the database's connection details. The response names no host, user or password, and no tool reveals them; get_workspace gives the database's name and nothing more. The MCP key is the only way in, so an agent cannot run its own SQL, migrations or pg_dump against its sandbox. Once you have claimed it, you can download the whole database as one SQL file.
  • The storage limit is checked every ten minutes, not on every write. Between two checks a sandbox can grow past 50 MB before it turns read-only.
  • The per-address count lives in the server's memory. Every deploy starts it empty, forgetting who signed up in the past hour. The daily cap and the cap on sandboxes are not affected: they count what is actually there.
  • Seven days is fixed. Neither the agent nor you can extend the deadline. The only way to keep a sandbox is to claim it.
  • Nobody is told before it closes. An unclaimed organisation has no owner and no email address, so both the closing at seven days and the deletion thirty days later happen without a notice. The deadline is in the signup response and on the claim page; an agent that has lost the response has no tool to ask for it.
  • Anything beyond the sandbox still takes a person. Connecting a database of your own, Workspace API keys, inviting members and approving an OAuth connection all need someone signed in. An agent on its own gets this sandbox and nothing more.

The AI integration guide covers this from your side. The authentication guide that agents read has the full request and response, and every error an agent can get back.

Verified 26 Nov 2026: Run on production on 2026-11-26 exactly as described. One POST to /api/agent-signup with no credential returned 201 with an agent- organisation, a workspace, a FULL mcp_ key and a claim link expiring seven days later. With that key over MCP, create_view with only a name made a table, add_column added two columns, create_record wrote a row and query_data read it back; the sixth create_view was refused with the PlanLimitExceededException text quoted below; get_workspace named the database but no host, user or password; the claim preview returned the deadline. The claim itself was run on production on 2026-11-20 by a person signing in through the link — they became owner, the agent's key kept working, and the same link then answered 404. Expiry and the thirty-day deletion cannot be waited out for a post, so they rest on AgentSignupIntegrationTest (14 cases, all green 2026-11-26, including closing at the deadline, the purge after the grace period, the per-address limit returning 429 with Retry-After, and a sandbox login owning its database while another login cannot connect) and SignupAddressLimiterTest (the fourth signup within the hour refused, IPv6 counted per /64). Not exercised — the switch to read-only past 50 MB. That limit and the ten-minute check are read from AgentSandboxJob; the suite only proves a small sandbox is left writable..